Class PolicyBasedRoute.VirtualMachine.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder>
com.google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine.Builder
All Implemented Interfaces:
PolicyBasedRoute.VirtualMachineOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyBasedRoute.VirtualMachine

public static final class PolicyBasedRoute.VirtualMachine.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder> implements PolicyBasedRoute.VirtualMachineOrBuilder
 VM instances that this policy-based route applies to.
 
Protobuf type google.cloud.networkconnectivity.v1beta.PolicyBasedRoute.VirtualMachine
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder>
    • getDefaultInstanceForType

      public PolicyBasedRoute.VirtualMachine getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PolicyBasedRoute.VirtualMachine buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PolicyBasedRoute.VirtualMachine.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder>
    • mergeFrom

      public PolicyBasedRoute.VirtualMachine.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyBasedRoute.VirtualMachine.Builder>
      Throws:
      IOException
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsList in interface PolicyBasedRoute.VirtualMachineOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsCount in interface PolicyBasedRoute.VirtualMachineOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTags in interface PolicyBasedRoute.VirtualMachineOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsBytes in interface PolicyBasedRoute.VirtualMachineOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public PolicyBasedRoute.VirtualMachine.Builder setTags(int index, String value)
       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addTagsBytes

      public PolicyBasedRoute.VirtualMachine.Builder addTagsBytes(com.google.protobuf.ByteString value)
       Optional. A list of VM instance tags that this policy-based route applies
       to. VM instances that have ANY of tags specified here installs this PBR.
       
      repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.