public static final class ExtensionBinding.Target.Builder extends GeneratedMessage.Builder<ExtensionBinding.Target.Builder> implements ExtensionBinding.TargetOrBuilder Specifies a list of targets to which this ExtensionBinding should attach.
Protobuf type google.cloud.networkservices.v1beta1.ExtensionBinding.Target
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExtensionBinding.Target.BuilderImplements
ExtensionBinding.TargetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllResources(Iterable<String> values)
public ExtensionBinding.Target.Builder addAllResources(Iterable<String> values) Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The resources to add. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
This builder for chaining. |
addResources(String value)
public ExtensionBinding.Target.Builder addResources(String value) Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resources to add. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
This builder for chaining. |
addResourcesBytes(ByteString value)
public ExtensionBinding.Target.Builder addResourcesBytes(ByteString value) Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the resources to add. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
This builder for chaining. |
build()
public ExtensionBinding.Target build()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target |
|
buildPartial()
public ExtensionBinding.Target buildPartial()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target |
|
clear()
public ExtensionBinding.Target.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|
clearResources()
public ExtensionBinding.Target.Builder clearResources() Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
This builder for chaining. |
clearScope()
public ExtensionBinding.Target.Builder clearScope() Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|
getDefaultInstanceForType()
public ExtensionBinding.Target getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getResources(int index)
public String getResources(int index) Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The resources at the given index. |
getResourcesBytes(int index)
public ByteString getResourcesBytes(int index) Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the resources at the given index. |
getResourcesCount()
public int getResourcesCount() Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of resources. |
getResourcesList()
public ProtocolStringList getResourcesList() Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the resources. |
getScope()
public ExtensionBinding.Target.Scope getScope() Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope |
The scope. |
getScopeBuilder()
public ExtensionBinding.Target.Scope.Builder getScopeBuilder() Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
|
getScopeOrBuilder()
public ExtensionBinding.Target.ScopeOrBuilder getScopeOrBuilder() Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.ScopeOrBuilder |
|
hasScope()
public boolean hasScope() Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the scope field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExtensionBinding.Target other)
public ExtensionBinding.Target.Builder mergeFrom(ExtensionBinding.Target other)| Parameter | |
|---|---|
| Name | Description |
other |
ExtensionBinding.Target |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExtensionBinding.Target.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExtensionBinding.Target.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|
mergeScope(ExtensionBinding.Target.Scope value)
public ExtensionBinding.Target.Builder mergeScope(ExtensionBinding.Target.Scope value) Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ExtensionBinding.Target.Scope |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|
setResources(int index, String value)
public ExtensionBinding.Target.Builder setResources(int index, String value) Optional. The reference to the target resource, to which this binding
should attach. Exactly one of resources or scope must be set.
repeated string resources = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe resources to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
This builder for chaining. |
setScope(ExtensionBinding.Target.Scope value)
public ExtensionBinding.Target.Builder setScope(ExtensionBinding.Target.Scope value) Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ExtensionBinding.Target.Scope |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|
setScope(ExtensionBinding.Target.Scope.Builder builderForValue)
public ExtensionBinding.Target.Builder setScope(ExtensionBinding.Target.Scope.Builder builderForValue) Optional. Specifies the scope of resources to which this binding should
attach. Exactly one of resources or scope must be set.
.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope scope = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExtensionBinding.Target.Scope.Builder |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Builder |
|