Class PolicyBasedRoute.VirtualMachine (1.7.0)

public static final class PolicyBasedRoute.VirtualMachine extends GeneratedMessageV3 implements PolicyBasedRoute.VirtualMachineOrBuilder

VM instances to which this policy based route applies to.

Protobuf type google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PolicyBasedRoute.VirtualMachine

Static Fields

TAGS_FIELD_NUMBER

public static final int TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PolicyBasedRoute.VirtualMachine getDefaultInstance()
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine

getDescriptor()

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

newBuilder()

public static PolicyBasedRoute.VirtualMachine.Builder newBuilder()
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine.Builder

newBuilder(PolicyBasedRoute.VirtualMachine prototype)

public static PolicyBasedRoute.VirtualMachine.Builder newBuilder(PolicyBasedRoute.VirtualMachine prototype)
Parameter
NameDescription
prototypePolicyBasedRoute.VirtualMachine
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine.Builder

parseDelimitedFrom(InputStream input)

public static PolicyBasedRoute.VirtualMachine parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PolicyBasedRoute.VirtualMachine parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PolicyBasedRoute.VirtualMachine parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PolicyBasedRoute.VirtualMachine parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PolicyBasedRoute.VirtualMachine parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PolicyBasedRoute.VirtualMachine> parser()
Returns
TypeDescription
Parser<VirtualMachine>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PolicyBasedRoute.VirtualMachine getDefaultInstanceForType()
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine

getParserForType()

public Parser<PolicyBasedRoute.VirtualMachine> getParserForType()
Returns
TypeDescription
Parser<VirtualMachine>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTags(int index)

public String getTags(int index)

Optional. A list of VM instance tags to which this policy based route applies to. VM instances that have ANY of tags specified here will install this PBR.

repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

Optional. A list of VM instance tags to which this policy based route applies to. VM instances that have ANY of tags specified here will install this PBR.

repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

Optional. A list of VM instance tags to which this policy based route applies to. VM instances that have ANY of tags specified here will install this PBR.

repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Optional. A list of VM instance tags to which this policy based route applies to. VM instances that have ANY of tags specified here will install this PBR.

repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the tags.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

newBuilderForType()

public PolicyBasedRoute.VirtualMachine.Builder newBuilderForType()
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public PolicyBasedRoute.VirtualMachine.Builder toBuilder()
Returns
TypeDescription
PolicyBasedRoute.VirtualMachine.Builder

writeTo(CodedOutputStream output)

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