Class MetadataFilterLabelMatch (1.6.0-beta)

public final class MetadataFilterLabelMatch extends GeneratedMessageV3 implements MetadataFilterLabelMatchOrBuilder

MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer.

Protobuf type google.cloud.compute.v1.MetadataFilterLabelMatch

Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstance()

public static MetadataFilterLabelMatch getDefaultInstance()
Returns
TypeDescription
MetadataFilterLabelMatch

getDefaultInstanceForType()

public MetadataFilterLabelMatch getDefaultInstanceForType()
Returns
TypeDescription
MetadataFilterLabelMatch

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getName()

public String getName()

Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<MetadataFilterLabelMatch> getParserForType()
Returns
TypeDescription
Parser<MetadataFilterLabelMatch>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValue()

public String getValue()

The value of the label must match the specified value. value can have a maximum length of 1024 characters.

optional string value = 111972721;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the label must match the specified value. value can have a maximum length of 1024 characters.

optional string value = 111972721;

Returns
TypeDescription
ByteString

The bytes for value.

hasName()

public boolean hasName()

Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasValue()

public boolean hasValue()

The value of the label must match the specified value. value can have a maximum length of 1024 characters.

optional string value = 111972721;

Returns
TypeDescription
boolean

Whether the value field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static MetadataFilterLabelMatch.Builder newBuilder()
Returns
TypeDescription
MetadataFilterLabelMatch.Builder

newBuilder(MetadataFilterLabelMatch prototype)

public static MetadataFilterLabelMatch.Builder newBuilder(MetadataFilterLabelMatch prototype)
Parameter
NameDescription
prototypeMetadataFilterLabelMatch
Returns
TypeDescription
MetadataFilterLabelMatch.Builder

newBuilderForType()

public MetadataFilterLabelMatch.Builder newBuilderForType()
Returns
TypeDescription
MetadataFilterLabelMatch.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MetadataFilterLabelMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static MetadataFilterLabelMatch parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataFilterLabelMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MetadataFilterLabelMatch parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MetadataFilterLabelMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MetadataFilterLabelMatch parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MetadataFilterLabelMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MetadataFilterLabelMatch parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataFilterLabelMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MetadataFilterLabelMatch parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MetadataFilterLabelMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MetadataFilterLabelMatch parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MetadataFilterLabelMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataFilterLabelMatch
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MetadataFilterLabelMatch> parser()
Returns
TypeDescription
Parser<MetadataFilterLabelMatch>

toBuilder()

public MetadataFilterLabelMatch.Builder toBuilder()
Returns
TypeDescription
MetadataFilterLabelMatch.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException