public static final class ExtensionBinding.Target.Scope.Builder extends GeneratedMessage.Builder<ExtensionBinding.Target.Scope.Builder> implements ExtensionBinding.Target.ScopeOrBuilderSpecifies the scope of resources to which this binding should attach.
Protobuf type google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExtensionBinding.Target.Scope.BuilderImplements
ExtensionBinding.Target.ScopeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllResourceTypes(Iterable<? extends ExtensionBinding.Target.Scope.ResourceType> values)
public ExtensionBinding.Target.Scope.Builder addAllResourceTypes(Iterable<? extends ExtensionBinding.Target.Scope.ResourceType> values)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType>The resourceTypes to add. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
addAllResourceTypesValue(Iterable<Integer> values)
public ExtensionBinding.Target.Scope.Builder addAllResourceTypesValue(Iterable<Integer> values)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for resourceTypes to add. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
addResourceTypes(ExtensionBinding.Target.Scope.ResourceType value)
public ExtensionBinding.Target.Scope.Builder addResourceTypes(ExtensionBinding.Target.Scope.ResourceType value)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ExtensionBinding.Target.Scope.ResourceTypeThe resourceTypes to add. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
addResourceTypesValue(int value)
public ExtensionBinding.Target.Scope.Builder addResourceTypesValue(int value)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for resourceTypes to add. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
build()
public ExtensionBinding.Target.Scope build()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope |
|
buildPartial()
public ExtensionBinding.Target.Scope buildPartial()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope |
|
clear()
public ExtensionBinding.Target.Scope.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
|
clearParent()
public ExtensionBinding.Target.Scope.Builder clearParent() Required. Parent resource name specification, in the format:
projects/{project_number}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
clearResourceTypes()
public ExtensionBinding.Target.Scope.Builder clearResourceTypes()Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ExtensionBinding.Target.Scope getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. Parent resource name specification, in the format:
projects/{project_number}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. Parent resource name specification, in the format:
projects/{project_number}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getResourceTypes(int index)
public ExtensionBinding.Target.Scope.ResourceType getResourceTypes(int index)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.ResourceType |
The resourceTypes at the given index. |
getResourceTypesCount()
public int getResourceTypesCount()Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of resourceTypes. |
getResourceTypesList()
public List<ExtensionBinding.Target.Scope.ResourceType> getResourceTypesList()Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<ResourceType> |
A list containing the resourceTypes. |
getResourceTypesValue(int index)
public int getResourceTypesValue(int index)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of resourceTypes at the given index. |
getResourceTypesValueList()
public List<Integer> getResourceTypesValueList()Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for resourceTypes. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExtensionBinding.Target.Scope other)
public ExtensionBinding.Target.Scope.Builder mergeFrom(ExtensionBinding.Target.Scope other)| Parameter | |
|---|---|
| Name | Description |
other |
ExtensionBinding.Target.Scope |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExtensionBinding.Target.Scope.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExtensionBinding.Target.Scope.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
|
setParent(String value)
public ExtensionBinding.Target.Scope.Builder setParent(String value) Required. Parent resource name specification, in the format:
projects/{project_number}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public ExtensionBinding.Target.Scope.Builder setParentBytes(ByteString value) Required. Parent resource name specification, in the format:
projects/{project_number}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
setResourceTypes(int index, ExtensionBinding.Target.Scope.ResourceType value)
public ExtensionBinding.Target.Scope.Builder setResourceTypes(int index, ExtensionBinding.Target.Scope.ResourceType value)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
ExtensionBinding.Target.Scope.ResourceTypeThe resourceTypes to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |
setResourceTypesValue(int index, int value)
public ExtensionBinding.Target.Scope.Builder setResourceTypesValue(int index, int value)Required. Type of the resource to which the binding should attach. Limited to 1 resource type.
repeated .google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope.ResourceType resource_types = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for resourceTypes to set. |
| Returns | |
|---|---|
| Type | Description |
ExtensionBinding.Target.Scope.Builder |
This builder for chaining. |