Class BackendServiceHAPolicyLeaderNetworkEndpoint.Builder

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

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

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

      public BackendServiceHAPolicyLeaderNetworkEndpoint.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<BackendServiceHAPolicyLeaderNetworkEndpoint.Builder>
      Throws:
      IOException
    • hasInstance

      public boolean hasInstance()
       The name of the VM instance of the leader network endpoint. The
       instance must already be attached to the NEG specified in the
       haPolicy.leader.backendGroup.
      
       The name must be 1-63 characters long, and comply with RFC1035.
       Authorization requires the following IAM permission on the
       specified resource instance: compute.instances.use
       
      optional string instance = 18257045;
      Specified by:
      hasInstance in interface BackendServiceHAPolicyLeaderNetworkEndpointOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public String getInstance()
       The name of the VM instance of the leader network endpoint. The
       instance must already be attached to the NEG specified in the
       haPolicy.leader.backendGroup.
      
       The name must be 1-63 characters long, and comply with RFC1035.
       Authorization requires the following IAM permission on the
       specified resource instance: compute.instances.use
       
      optional string instance = 18257045;
      Specified by:
      getInstance in interface BackendServiceHAPolicyLeaderNetworkEndpointOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       The name of the VM instance of the leader network endpoint. The
       instance must already be attached to the NEG specified in the
       haPolicy.leader.backendGroup.
      
       The name must be 1-63 characters long, and comply with RFC1035.
       Authorization requires the following IAM permission on the
       specified resource instance: compute.instances.use
       
      optional string instance = 18257045;
      Specified by:
      getInstanceBytes in interface BackendServiceHAPolicyLeaderNetworkEndpointOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

       The name of the VM instance of the leader network endpoint. The
       instance must already be attached to the NEG specified in the
       haPolicy.leader.backendGroup.
      
       The name must be 1-63 characters long, and comply with RFC1035.
       Authorization requires the following IAM permission on the
       specified resource instance: compute.instances.use
       
      optional string instance = 18257045;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

       The name of the VM instance of the leader network endpoint. The
       instance must already be attached to the NEG specified in the
       haPolicy.leader.backendGroup.
      
       The name must be 1-63 characters long, and comply with RFC1035.
       Authorization requires the following IAM permission on the
       specified resource instance: compute.instances.use
       
      optional string instance = 18257045;
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public BackendServiceHAPolicyLeaderNetworkEndpoint.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       The name of the VM instance of the leader network endpoint. The
       instance must already be attached to the NEG specified in the
       haPolicy.leader.backendGroup.
      
       The name must be 1-63 characters long, and comply with RFC1035.
       Authorization requires the following IAM permission on the
       specified resource instance: compute.instances.use
       
      optional string instance = 18257045;
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.