Class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder

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

public static final class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder> implements BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
 The configuration for a custom policy implemented by the user and
 deployed with the client.
 
Protobuf type google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
  • 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<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.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<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.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<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
    • 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

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

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

      public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.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<BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder>
      Throws:
      IOException
    • hasData

      public boolean hasData()
       An optional, arbitrary JSON object with configuration data, understood
       by a locally installed custom policy implementation.
       
      optional string data = 3076010;
      Specified by:
      hasData in interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public String getData()
       An optional, arbitrary JSON object with configuration data, understood
       by a locally installed custom policy implementation.
       
      optional string data = 3076010;
      Specified by:
      getData in interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
      Returns:
      The data.
    • getDataBytes

      public com.google.protobuf.ByteString getDataBytes()
       An optional, arbitrary JSON object with configuration data, understood
       by a locally installed custom policy implementation.
       
      optional string data = 3076010;
      Specified by:
      getDataBytes in interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
      Returns:
      The bytes for data.
    • setData

       An optional, arbitrary JSON object with configuration data, understood
       by a locally installed custom policy implementation.
       
      optional string data = 3076010;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

       An optional, arbitrary JSON object with configuration data, understood
       by a locally installed custom policy implementation.
       
      optional string data = 3076010;
      Returns:
      This builder for chaining.
    • setDataBytes

      public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setDataBytes(com.google.protobuf.ByteString value)
       An optional, arbitrary JSON object with configuration data, understood
       by a locally installed custom policy implementation.
       
      optional string data = 3076010;
      Parameters:
      value - The bytes for data to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Identifies the custom policy.
      
       The value should match the name of a custom implementation registered
       on the gRPC clients. It should follow protocol buffer message naming
       conventions and include the full path (for example,
       myorg.CustomLbPolicy). The maximum length is 256 characters.
      
       Do not specify the same custom policy more than once for a
       backend. If you do, the configuration is rejected.
      
       For an example of how to use this field, seeUse
       a custom policy.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Identifies the custom policy.
      
       The value should match the name of a custom implementation registered
       on the gRPC clients. It should follow protocol buffer message naming
       conventions and include the full path (for example,
       myorg.CustomLbPolicy). The maximum length is 256 characters.
      
       Do not specify the same custom policy more than once for a
       backend. If you do, the configuration is rejected.
      
       For an example of how to use this field, seeUse
       a custom policy.
       
      optional string name = 3373707;
      Specified by:
      getName in interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifies the custom policy.
      
       The value should match the name of a custom implementation registered
       on the gRPC clients. It should follow protocol buffer message naming
       conventions and include the full path (for example,
       myorg.CustomLbPolicy). The maximum length is 256 characters.
      
       Do not specify the same custom policy more than once for a
       backend. If you do, the configuration is rejected.
      
       For an example of how to use this field, seeUse
       a custom policy.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

       Identifies the custom policy.
      
       The value should match the name of a custom implementation registered
       on the gRPC clients. It should follow protocol buffer message naming
       conventions and include the full path (for example,
       myorg.CustomLbPolicy). The maximum length is 256 characters.
      
       Do not specify the same custom policy more than once for a
       backend. If you do, the configuration is rejected.
      
       For an example of how to use this field, seeUse
       a custom policy.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Identifies the custom policy.
      
       The value should match the name of a custom implementation registered
       on the gRPC clients. It should follow protocol buffer message naming
       conventions and include the full path (for example,
       myorg.CustomLbPolicy). The maximum length is 256 characters.
      
       Do not specify the same custom policy more than once for a
       backend. If you do, the configuration is rejected.
      
       For an example of how to use this field, seeUse
       a custom policy.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifies the custom policy.
      
       The value should match the name of a custom implementation registered
       on the gRPC clients. It should follow protocol buffer message naming
       conventions and include the full path (for example,
       myorg.CustomLbPolicy). The maximum length is 256 characters.
      
       Do not specify the same custom policy more than once for a
       backend. If you do, the configuration is rejected.
      
       For an example of how to use this field, seeUse
       a custom policy.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.