Class RoutePolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder>
com.google.cloud.compute.v1.RoutePolicy.Builder
All Implemented Interfaces:
RoutePolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RoutePolicy

public static final class RoutePolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<RoutePolicy.Builder> implements RoutePolicyOrBuilder
 
Protobuf type google.cloud.compute.v1.RoutePolicy
  • 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<RoutePolicy.Builder>
    • clear

      public RoutePolicy.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<RoutePolicy.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<RoutePolicy.Builder>
    • getDefaultInstanceForType

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

      public RoutePolicy build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public RoutePolicy.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<RoutePolicy.Builder>
    • mergeFrom

      public RoutePolicy.Builder mergeFrom(RoutePolicy other)
    • isInitialized

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

      public RoutePolicy.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<RoutePolicy.Builder>
      Throws:
      IOException
    • hasDescription

      public boolean hasDescription()
       An optional description of route policy.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface RoutePolicyOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of route policy.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface RoutePolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of route policy.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface RoutePolicyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public RoutePolicy.Builder setDescription(String value)
       An optional description of route policy.
       
      optional string description = 422937596;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public RoutePolicy.Builder clearDescription()
       An optional description of route policy.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public RoutePolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of route policy.
       
      optional string description = 422937596;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasFingerprint

      public boolean hasFingerprint()
       A fingerprint for the Route Policy being applied to this Router, which is
       essentially a hash of the Route Policy used for optimistic locking.
       The fingerprint is initially generated by Compute Engine and changes
       after every request to modify or update Route Policy. You must always
       provide an up-to-date fingerprint hash in order to update or change
       labels.
      
       To see the latest fingerprint, make a getRoutePolicy() request
       to retrieve a Route Policy.
       
      optional string fingerprint = 234678500;
      Specified by:
      hasFingerprint in interface RoutePolicyOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public String getFingerprint()
       A fingerprint for the Route Policy being applied to this Router, which is
       essentially a hash of the Route Policy used for optimistic locking.
       The fingerprint is initially generated by Compute Engine and changes
       after every request to modify or update Route Policy. You must always
       provide an up-to-date fingerprint hash in order to update or change
       labels.
      
       To see the latest fingerprint, make a getRoutePolicy() request
       to retrieve a Route Policy.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprint in interface RoutePolicyOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public com.google.protobuf.ByteString getFingerprintBytes()
       A fingerprint for the Route Policy being applied to this Router, which is
       essentially a hash of the Route Policy used for optimistic locking.
       The fingerprint is initially generated by Compute Engine and changes
       after every request to modify or update Route Policy. You must always
       provide an up-to-date fingerprint hash in order to update or change
       labels.
      
       To see the latest fingerprint, make a getRoutePolicy() request
       to retrieve a Route Policy.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprintBytes in interface RoutePolicyOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      public RoutePolicy.Builder setFingerprint(String value)
       A fingerprint for the Route Policy being applied to this Router, which is
       essentially a hash of the Route Policy used for optimistic locking.
       The fingerprint is initially generated by Compute Engine and changes
       after every request to modify or update Route Policy. You must always
       provide an up-to-date fingerprint hash in order to update or change
       labels.
      
       To see the latest fingerprint, make a getRoutePolicy() request
       to retrieve a Route Policy.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The fingerprint to set.
      Returns:
      This builder for chaining.
    • clearFingerprint

      public RoutePolicy.Builder clearFingerprint()
       A fingerprint for the Route Policy being applied to this Router, which is
       essentially a hash of the Route Policy used for optimistic locking.
       The fingerprint is initially generated by Compute Engine and changes
       after every request to modify or update Route Policy. You must always
       provide an up-to-date fingerprint hash in order to update or change
       labels.
      
       To see the latest fingerprint, make a getRoutePolicy() request
       to retrieve a Route Policy.
       
      optional string fingerprint = 234678500;
      Returns:
      This builder for chaining.
    • setFingerprintBytes

      public RoutePolicy.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
       A fingerprint for the Route Policy being applied to this Router, which is
       essentially a hash of the Route Policy used for optimistic locking.
       The fingerprint is initially generated by Compute Engine and changes
       after every request to modify or update Route Policy. You must always
       provide an up-to-date fingerprint hash in order to update or change
       labels.
      
       To see the latest fingerprint, make a getRoutePolicy() request
       to retrieve a Route Policy.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The bytes for fingerprint to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Route Policy name, which must be a resource ID segment and unique
       within all the router's Route Policies. Name should conform to RFC1035.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface RoutePolicyOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Route Policy name, which must be a resource ID segment and unique
       within all the router's Route Policies. Name should conform to RFC1035.
       
      optional string name = 3373707;
      Specified by:
      getName in interface RoutePolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Route Policy name, which must be a resource ID segment and unique
       within all the router's Route Policies. Name should conform to RFC1035.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface RoutePolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RoutePolicy.Builder setName(String value)
       Route Policy name, which must be a resource ID segment and unique
       within all the router's Route Policies. Name should conform to RFC1035.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RoutePolicy.Builder clearName()
       Route Policy name, which must be a resource ID segment and unique
       within all the router's Route Policies. Name should conform to RFC1035.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public RoutePolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Route Policy name, which must be a resource ID segment and unique
       within all the router's Route Policies. Name should conform to RFC1035.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTermsList

      public List<RoutePolicyPolicyTerm> getTermsList()
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
      Specified by:
      getTermsList in interface RoutePolicyOrBuilder
    • getTermsCount

      public int getTermsCount()
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
      Specified by:
      getTermsCount in interface RoutePolicyOrBuilder
    • getTerms

      public RoutePolicyPolicyTerm getTerms(int index)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
      Specified by:
      getTerms in interface RoutePolicyOrBuilder
    • setTerms

      public RoutePolicy.Builder setTerms(int index, RoutePolicyPolicyTerm value)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • setTerms

      public RoutePolicy.Builder setTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • addTerms

      public RoutePolicy.Builder addTerms(RoutePolicyPolicyTerm value)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • addTerms

      public RoutePolicy.Builder addTerms(int index, RoutePolicyPolicyTerm value)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • addTerms

      public RoutePolicy.Builder addTerms(RoutePolicyPolicyTerm.Builder builderForValue)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • addTerms

      public RoutePolicy.Builder addTerms(int index, RoutePolicyPolicyTerm.Builder builderForValue)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • addAllTerms

      public RoutePolicy.Builder addAllTerms(Iterable<? extends RoutePolicyPolicyTerm> values)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • clearTerms

      public RoutePolicy.Builder clearTerms()
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • removeTerms

      public RoutePolicy.Builder removeTerms(int index)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • getTermsBuilder

      public RoutePolicyPolicyTerm.Builder getTermsBuilder(int index)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • getTermsOrBuilder

      public RoutePolicyPolicyTermOrBuilder getTermsOrBuilder(int index)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
      Specified by:
      getTermsOrBuilder in interface RoutePolicyOrBuilder
    • getTermsOrBuilderList

      public List<? extends RoutePolicyPolicyTermOrBuilder> getTermsOrBuilderList()
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
      Specified by:
      getTermsOrBuilderList in interface RoutePolicyOrBuilder
    • addTermsBuilder

      public RoutePolicyPolicyTerm.Builder addTermsBuilder()
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • addTermsBuilder

      public RoutePolicyPolicyTerm.Builder addTermsBuilder(int index)
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • getTermsBuilderList

      public List<RoutePolicyPolicyTerm.Builder> getTermsBuilderList()
       List of terms (the order in the list is not important, they are evaluated
       in order of priority). Order of policies is not retained and might change
       when getting policy later.
       
      repeated .google.cloud.compute.v1.RoutePolicyPolicyTerm terms = 110250375;
    • hasType

      public boolean hasType()
      
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface RoutePolicyOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
      
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getType in interface RoutePolicyOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface RoutePolicyOrBuilder
      Returns:
      The bytes for type.
    • setType

      public RoutePolicy.Builder setType(String value)
      
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public RoutePolicy.Builder clearType()
      
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public RoutePolicy.Builder setTypeBytes(com.google.protobuf.ByteString value)
      
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.