Class BackendServiceHAPolicyLeader.Builder

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

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

      public BackendServiceHAPolicyLeader 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 BackendServiceHAPolicyLeader buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public BackendServiceHAPolicyLeader.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<BackendServiceHAPolicyLeader.Builder>
      Throws:
      IOException
    • hasBackendGroup

      public boolean hasBackendGroup()
       A fully-qualified URL (starting with https://www.googleapis.com/)
       of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints
       that the leader is attached to.
      
       The leader's backendGroup must already be specified as a backend of
       this backend service. Removing a backend that is designated as the
       leader's backendGroup is not permitted.
       
      optional string backend_group = 457777428;
      Specified by:
      hasBackendGroup in interface BackendServiceHAPolicyLeaderOrBuilder
      Returns:
      Whether the backendGroup field is set.
    • getBackendGroup

      public String getBackendGroup()
       A fully-qualified URL (starting with https://www.googleapis.com/)
       of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints
       that the leader is attached to.
      
       The leader's backendGroup must already be specified as a backend of
       this backend service. Removing a backend that is designated as the
       leader's backendGroup is not permitted.
       
      optional string backend_group = 457777428;
      Specified by:
      getBackendGroup in interface BackendServiceHAPolicyLeaderOrBuilder
      Returns:
      The backendGroup.
    • getBackendGroupBytes

      public com.google.protobuf.ByteString getBackendGroupBytes()
       A fully-qualified URL (starting with https://www.googleapis.com/)
       of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints
       that the leader is attached to.
      
       The leader's backendGroup must already be specified as a backend of
       this backend service. Removing a backend that is designated as the
       leader's backendGroup is not permitted.
       
      optional string backend_group = 457777428;
      Specified by:
      getBackendGroupBytes in interface BackendServiceHAPolicyLeaderOrBuilder
      Returns:
      The bytes for backendGroup.
    • setBackendGroup

      public BackendServiceHAPolicyLeader.Builder setBackendGroup(String value)
       A fully-qualified URL (starting with https://www.googleapis.com/)
       of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints
       that the leader is attached to.
      
       The leader's backendGroup must already be specified as a backend of
       this backend service. Removing a backend that is designated as the
       leader's backendGroup is not permitted.
       
      optional string backend_group = 457777428;
      Parameters:
      value - The backendGroup to set.
      Returns:
      This builder for chaining.
    • clearBackendGroup

      public BackendServiceHAPolicyLeader.Builder clearBackendGroup()
       A fully-qualified URL (starting with https://www.googleapis.com/)
       of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints
       that the leader is attached to.
      
       The leader's backendGroup must already be specified as a backend of
       this backend service. Removing a backend that is designated as the
       leader's backendGroup is not permitted.
       
      optional string backend_group = 457777428;
      Returns:
      This builder for chaining.
    • setBackendGroupBytes

      public BackendServiceHAPolicyLeader.Builder setBackendGroupBytes(com.google.protobuf.ByteString value)
       A fully-qualified URL (starting with https://www.googleapis.com/)
       of the zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints
       that the leader is attached to.
      
       The leader's backendGroup must already be specified as a backend of
       this backend service. Removing a backend that is designated as the
       leader's backendGroup is not permitted.
       
      optional string backend_group = 457777428;
      Parameters:
      value - The bytes for backendGroup to set.
      Returns:
      This builder for chaining.
    • hasNetworkEndpoint

      public boolean hasNetworkEndpoint()
       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
      Specified by:
      hasNetworkEndpoint in interface BackendServiceHAPolicyLeaderOrBuilder
      Returns:
      Whether the networkEndpoint field is set.
    • getNetworkEndpoint

      public BackendServiceHAPolicyLeaderNetworkEndpoint getNetworkEndpoint()
       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
      Specified by:
      getNetworkEndpoint in interface BackendServiceHAPolicyLeaderOrBuilder
      Returns:
      The networkEndpoint.
    • setNetworkEndpoint

       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
    • setNetworkEndpoint

       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
    • mergeNetworkEndpoint

       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
    • clearNetworkEndpoint

      public BackendServiceHAPolicyLeader.Builder clearNetworkEndpoint()
       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
    • getNetworkEndpointBuilder

      public BackendServiceHAPolicyLeaderNetworkEndpoint.Builder getNetworkEndpointBuilder()
       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
    • getNetworkEndpointOrBuilder

      public BackendServiceHAPolicyLeaderNetworkEndpointOrBuilder getNetworkEndpointOrBuilder()
       The network endpoint within the leader.backendGroup that is
       designated as the leader.
      
       This network endpoint cannot be detached from the NEG specified in
       the haPolicy.leader.backendGroup until the leader is updated with
       another network endpoint, or the leader is removed from the haPolicy.
       
      optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;
      Specified by:
      getNetworkEndpointOrBuilder in interface BackendServiceHAPolicyLeaderOrBuilder