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 load balancer.
Protobuf type google.cloud.compute.v1.MetadataFilterLabelMatch
Static Fields
public static final int NAME_FIELD_NUMBER
Field Value
public static final int VALUE_FIELD_NUMBER
Field Value
Static Methods
public static MetadataFilterLabelMatch getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static MetadataFilterLabelMatch.Builder newBuilder()
Returns
public static MetadataFilterLabelMatch.Builder newBuilder(MetadataFilterLabelMatch prototype)
Parameter
Returns
public static MetadataFilterLabelMatch parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MetadataFilterLabelMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static MetadataFilterLabelMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<MetadataFilterLabelMatch> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public MetadataFilterLabelMatch getDefaultInstanceForType()
Returns
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
Type | Description |
String | The name.
|
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
public Parser<MetadataFilterLabelMatch> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
The value of the label must match the specified value. value can have a maximum length of 1024 characters.
optional string value = 111972721;
Returns
Type | Description |
String | The value.
|
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
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
Type | Description |
boolean | Whether the name field is set.
|
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
Type | Description |
boolean | Whether the value field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MetadataFilterLabelMatch.Builder newBuilderForType()
Returns
protected MetadataFilterLabelMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public MetadataFilterLabelMatch.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions