Class ExtensionBinding.Target.Scope (0.55.0)

public static final class ExtensionBinding.Target.Scope extends GeneratedMessage implements ExtensionBinding.Target.ScopeOrBuilder

Specifies the scope of resources to which this binding should attach.

Protobuf type google.cloud.networkservices.v1beta1.ExtensionBinding.Target.Scope

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ExtensionBinding.Target.Scope

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPES_FIELD_NUMBER

public static final int RESOURCE_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExtensionBinding.Target.Scope getDefaultInstance()
Returns
Type Description
ExtensionBinding.Target.Scope

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ExtensionBinding.Target.Scope.Builder newBuilder()
Returns
Type Description
ExtensionBinding.Target.Scope.Builder

newBuilder(ExtensionBinding.Target.Scope prototype)

public static ExtensionBinding.Target.Scope.Builder newBuilder(ExtensionBinding.Target.Scope prototype)
Parameter
Name Description
prototype ExtensionBinding.Target.Scope
Returns
Type Description
ExtensionBinding.Target.Scope.Builder

parseDelimitedFrom(InputStream input)

public static ExtensionBinding.Target.Scope parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtensionBinding.Target.Scope parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ExtensionBinding.Target.Scope parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExtensionBinding.Target.Scope parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExtensionBinding.Target.Scope parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExtensionBinding.Target.Scope parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExtensionBinding.Target.Scope parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtensionBinding.Target.Scope parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ExtensionBinding.Target.Scope parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtensionBinding.Target.Scope parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ExtensionBinding.Target.Scope parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExtensionBinding.Target.Scope parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionBinding.Target.Scope
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ExtensionBinding.Target.Scope> parser()
Returns
Type Description
Parser<Scope>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ExtensionBinding.Target.Scope getDefaultInstanceForType()
Returns
Type Description
ExtensionBinding.Target.Scope

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.

getParserForType()

public Parser<ExtensionBinding.Target.Scope> getParserForType()
Returns
Type Description
Parser<Scope>
Overrides

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 int

The 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 int

The 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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ExtensionBinding.Target.Scope.Builder newBuilderForType()
Returns
Type Description
ExtensionBinding.Target.Scope.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ExtensionBinding.Target.Scope.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExtensionBinding.Target.Scope.Builder
Overrides

toBuilder()

public ExtensionBinding.Target.Scope.Builder toBuilder()
Returns
Type Description
ExtensionBinding.Target.Scope.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException