Class LoadBalancerBackendInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LoadBalancerBackendInfo.Builder>
com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder
All Implemented Interfaces:
LoadBalancerBackendInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LoadBalancerBackendInfo

public static final class LoadBalancerBackendInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<LoadBalancerBackendInfo.Builder> implements LoadBalancerBackendInfoOrBuilder
 For display only. Metadata associated with the load balancer backend.
 
Protobuf type google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo
  • 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<LoadBalancerBackendInfo.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<LoadBalancerBackendInfo.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<LoadBalancerBackendInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LoadBalancerBackendInfo.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<LoadBalancerBackendInfo.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Display name of the backend. For example, it might be an instance name for
       the instance group backends, or an IP address and port for zonal network
       endpoint group backends.
       
      string name = 1;
      Specified by:
      getName in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Display name of the backend. For example, it might be an instance name for
       the instance group backends, or an IP address and port for zonal network
       endpoint group backends.
       
      string name = 1;
      Specified by:
      getNameBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public LoadBalancerBackendInfo.Builder setName(String value)
       Display name of the backend. For example, it might be an instance name for
       the instance group backends, or an IP address and port for zonal network
       endpoint group backends.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public LoadBalancerBackendInfo.Builder clearName()
       Display name of the backend. For example, it might be an instance name for
       the instance group backends, or an IP address and port for zonal network
       endpoint group backends.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public LoadBalancerBackendInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       Display name of the backend. For example, it might be an instance name for
       the instance group backends, or an IP address and port for zonal network
       endpoint group backends.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getInstanceUri

      public String getInstanceUri()
       URI of the backend instance (if applicable). Populated for instance group
       backends, and zonal NEG backends.
       
      string instance_uri = 2;
      Specified by:
      getInstanceUri in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The instanceUri.
    • getInstanceUriBytes

      public com.google.protobuf.ByteString getInstanceUriBytes()
       URI of the backend instance (if applicable). Populated for instance group
       backends, and zonal NEG backends.
       
      string instance_uri = 2;
      Specified by:
      getInstanceUriBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for instanceUri.
    • setInstanceUri

      public LoadBalancerBackendInfo.Builder setInstanceUri(String value)
       URI of the backend instance (if applicable). Populated for instance group
       backends, and zonal NEG backends.
       
      string instance_uri = 2;
      Parameters:
      value - The instanceUri to set.
      Returns:
      This builder for chaining.
    • clearInstanceUri

      public LoadBalancerBackendInfo.Builder clearInstanceUri()
       URI of the backend instance (if applicable). Populated for instance group
       backends, and zonal NEG backends.
       
      string instance_uri = 2;
      Returns:
      This builder for chaining.
    • setInstanceUriBytes

      public LoadBalancerBackendInfo.Builder setInstanceUriBytes(com.google.protobuf.ByteString value)
       URI of the backend instance (if applicable). Populated for instance group
       backends, and zonal NEG backends.
       
      string instance_uri = 2;
      Parameters:
      value - The bytes for instanceUri to set.
      Returns:
      This builder for chaining.
    • getBackendServiceUri

      public String getBackendServiceUri()
       URI of the backend service this backend belongs to (if applicable).
       
      string backend_service_uri = 3;
      Specified by:
      getBackendServiceUri in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The backendServiceUri.
    • getBackendServiceUriBytes

      public com.google.protobuf.ByteString getBackendServiceUriBytes()
       URI of the backend service this backend belongs to (if applicable).
       
      string backend_service_uri = 3;
      Specified by:
      getBackendServiceUriBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for backendServiceUri.
    • setBackendServiceUri

      public LoadBalancerBackendInfo.Builder setBackendServiceUri(String value)
       URI of the backend service this backend belongs to (if applicable).
       
      string backend_service_uri = 3;
      Parameters:
      value - The backendServiceUri to set.
      Returns:
      This builder for chaining.
    • clearBackendServiceUri

      public LoadBalancerBackendInfo.Builder clearBackendServiceUri()
       URI of the backend service this backend belongs to (if applicable).
       
      string backend_service_uri = 3;
      Returns:
      This builder for chaining.
    • setBackendServiceUriBytes

      public LoadBalancerBackendInfo.Builder setBackendServiceUriBytes(com.google.protobuf.ByteString value)
       URI of the backend service this backend belongs to (if applicable).
       
      string backend_service_uri = 3;
      Parameters:
      value - The bytes for backendServiceUri to set.
      Returns:
      This builder for chaining.
    • getInstanceGroupUri

      public String getInstanceGroupUri()
       URI of the instance group this backend belongs to (if applicable).
       
      string instance_group_uri = 4;
      Specified by:
      getInstanceGroupUri in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The instanceGroupUri.
    • getInstanceGroupUriBytes

      public com.google.protobuf.ByteString getInstanceGroupUriBytes()
       URI of the instance group this backend belongs to (if applicable).
       
      string instance_group_uri = 4;
      Specified by:
      getInstanceGroupUriBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for instanceGroupUri.
    • setInstanceGroupUri

      public LoadBalancerBackendInfo.Builder setInstanceGroupUri(String value)
       URI of the instance group this backend belongs to (if applicable).
       
      string instance_group_uri = 4;
      Parameters:
      value - The instanceGroupUri to set.
      Returns:
      This builder for chaining.
    • clearInstanceGroupUri

      public LoadBalancerBackendInfo.Builder clearInstanceGroupUri()
       URI of the instance group this backend belongs to (if applicable).
       
      string instance_group_uri = 4;
      Returns:
      This builder for chaining.
    • setInstanceGroupUriBytes

      public LoadBalancerBackendInfo.Builder setInstanceGroupUriBytes(com.google.protobuf.ByteString value)
       URI of the instance group this backend belongs to (if applicable).
       
      string instance_group_uri = 4;
      Parameters:
      value - The bytes for instanceGroupUri to set.
      Returns:
      This builder for chaining.
    • getNetworkEndpointGroupUri

      public String getNetworkEndpointGroupUri()
       URI of the network endpoint group this backend belongs to (if applicable).
       
      string network_endpoint_group_uri = 5;
      Specified by:
      getNetworkEndpointGroupUri in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The networkEndpointGroupUri.
    • getNetworkEndpointGroupUriBytes

      public com.google.protobuf.ByteString getNetworkEndpointGroupUriBytes()
       URI of the network endpoint group this backend belongs to (if applicable).
       
      string network_endpoint_group_uri = 5;
      Specified by:
      getNetworkEndpointGroupUriBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for networkEndpointGroupUri.
    • setNetworkEndpointGroupUri

      public LoadBalancerBackendInfo.Builder setNetworkEndpointGroupUri(String value)
       URI of the network endpoint group this backend belongs to (if applicable).
       
      string network_endpoint_group_uri = 5;
      Parameters:
      value - The networkEndpointGroupUri to set.
      Returns:
      This builder for chaining.
    • clearNetworkEndpointGroupUri

      public LoadBalancerBackendInfo.Builder clearNetworkEndpointGroupUri()
       URI of the network endpoint group this backend belongs to (if applicable).
       
      string network_endpoint_group_uri = 5;
      Returns:
      This builder for chaining.
    • setNetworkEndpointGroupUriBytes

      public LoadBalancerBackendInfo.Builder setNetworkEndpointGroupUriBytes(com.google.protobuf.ByteString value)
       URI of the network endpoint group this backend belongs to (if applicable).
       
      string network_endpoint_group_uri = 5;
      Parameters:
      value - The bytes for networkEndpointGroupUri to set.
      Returns:
      This builder for chaining.
    • getBackendBucketUri

      public String getBackendBucketUri()
       URI of the backend bucket this backend targets (if applicable).
       
      string backend_bucket_uri = 8;
      Specified by:
      getBackendBucketUri in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The backendBucketUri.
    • getBackendBucketUriBytes

      public com.google.protobuf.ByteString getBackendBucketUriBytes()
       URI of the backend bucket this backend targets (if applicable).
       
      string backend_bucket_uri = 8;
      Specified by:
      getBackendBucketUriBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for backendBucketUri.
    • setBackendBucketUri

      public LoadBalancerBackendInfo.Builder setBackendBucketUri(String value)
       URI of the backend bucket this backend targets (if applicable).
       
      string backend_bucket_uri = 8;
      Parameters:
      value - The backendBucketUri to set.
      Returns:
      This builder for chaining.
    • clearBackendBucketUri

      public LoadBalancerBackendInfo.Builder clearBackendBucketUri()
       URI of the backend bucket this backend targets (if applicable).
       
      string backend_bucket_uri = 8;
      Returns:
      This builder for chaining.
    • setBackendBucketUriBytes

      public LoadBalancerBackendInfo.Builder setBackendBucketUriBytes(com.google.protobuf.ByteString value)
       URI of the backend bucket this backend targets (if applicable).
       
      string backend_bucket_uri = 8;
      Parameters:
      value - The bytes for backendBucketUri to set.
      Returns:
      This builder for chaining.
    • getPscServiceAttachmentUri

      public String getPscServiceAttachmentUri()
       URI of the PSC service attachment this PSC NEG backend targets (if
       applicable).
       
      string psc_service_attachment_uri = 9;
      Specified by:
      getPscServiceAttachmentUri in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The pscServiceAttachmentUri.
    • getPscServiceAttachmentUriBytes

      public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes()
       URI of the PSC service attachment this PSC NEG backend targets (if
       applicable).
       
      string psc_service_attachment_uri = 9;
      Specified by:
      getPscServiceAttachmentUriBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for pscServiceAttachmentUri.
    • setPscServiceAttachmentUri

      public LoadBalancerBackendInfo.Builder setPscServiceAttachmentUri(String value)
       URI of the PSC service attachment this PSC NEG backend targets (if
       applicable).
       
      string psc_service_attachment_uri = 9;
      Parameters:
      value - The pscServiceAttachmentUri to set.
      Returns:
      This builder for chaining.
    • clearPscServiceAttachmentUri

      public LoadBalancerBackendInfo.Builder clearPscServiceAttachmentUri()
       URI of the PSC service attachment this PSC NEG backend targets (if
       applicable).
       
      string psc_service_attachment_uri = 9;
      Returns:
      This builder for chaining.
    • setPscServiceAttachmentUriBytes

      public LoadBalancerBackendInfo.Builder setPscServiceAttachmentUriBytes(com.google.protobuf.ByteString value)
       URI of the PSC service attachment this PSC NEG backend targets (if
       applicable).
       
      string psc_service_attachment_uri = 9;
      Parameters:
      value - The bytes for pscServiceAttachmentUri to set.
      Returns:
      This builder for chaining.
    • getPscGoogleApiTarget

      public String getPscGoogleApiTarget()
       PSC Google API target this PSC NEG backend targets (if applicable).
       
      string psc_google_api_target = 10;
      Specified by:
      getPscGoogleApiTarget in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The pscGoogleApiTarget.
    • getPscGoogleApiTargetBytes

      public com.google.protobuf.ByteString getPscGoogleApiTargetBytes()
       PSC Google API target this PSC NEG backend targets (if applicable).
       
      string psc_google_api_target = 10;
      Specified by:
      getPscGoogleApiTargetBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for pscGoogleApiTarget.
    • setPscGoogleApiTarget

      public LoadBalancerBackendInfo.Builder setPscGoogleApiTarget(String value)
       PSC Google API target this PSC NEG backend targets (if applicable).
       
      string psc_google_api_target = 10;
      Parameters:
      value - The pscGoogleApiTarget to set.
      Returns:
      This builder for chaining.
    • clearPscGoogleApiTarget

      public LoadBalancerBackendInfo.Builder clearPscGoogleApiTarget()
       PSC Google API target this PSC NEG backend targets (if applicable).
       
      string psc_google_api_target = 10;
      Returns:
      This builder for chaining.
    • setPscGoogleApiTargetBytes

      public LoadBalancerBackendInfo.Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value)
       PSC Google API target this PSC NEG backend targets (if applicable).
       
      string psc_google_api_target = 10;
      Parameters:
      value - The bytes for pscGoogleApiTarget to set.
      Returns:
      This builder for chaining.
    • getHealthCheckUri

      public String getHealthCheckUri()
       URI of the health check attached to this backend (if applicable).
       
      string health_check_uri = 6;
      Specified by:
      getHealthCheckUri in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The healthCheckUri.
    • getHealthCheckUriBytes

      public com.google.protobuf.ByteString getHealthCheckUriBytes()
       URI of the health check attached to this backend (if applicable).
       
      string health_check_uri = 6;
      Specified by:
      getHealthCheckUriBytes in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The bytes for healthCheckUri.
    • setHealthCheckUri

      public LoadBalancerBackendInfo.Builder setHealthCheckUri(String value)
       URI of the health check attached to this backend (if applicable).
       
      string health_check_uri = 6;
      Parameters:
      value - The healthCheckUri to set.
      Returns:
      This builder for chaining.
    • clearHealthCheckUri

      public LoadBalancerBackendInfo.Builder clearHealthCheckUri()
       URI of the health check attached to this backend (if applicable).
       
      string health_check_uri = 6;
      Returns:
      This builder for chaining.
    • setHealthCheckUriBytes

      public LoadBalancerBackendInfo.Builder setHealthCheckUriBytes(com.google.protobuf.ByteString value)
       URI of the health check attached to this backend (if applicable).
       
      string health_check_uri = 6;
      Parameters:
      value - The bytes for healthCheckUri to set.
      Returns:
      This builder for chaining.
    • getHealthCheckFirewallsConfigStateValue

      public int getHealthCheckFirewallsConfigStateValue()
       Output only. Health check firewalls configuration state for the backend.
       This is a result of the static firewall analysis (verifying that health
       check traffic from required IP ranges to the backend is allowed or not).
       The backend might still be unhealthy even if these firewalls are
       configured. Please refer to the documentation for more information:
       https://cloud.google.com/load-balancing/docs/firewall-rules
       
      .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHealthCheckFirewallsConfigStateValue in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The enum numeric value on the wire for healthCheckFirewallsConfigState.
    • setHealthCheckFirewallsConfigStateValue

      public LoadBalancerBackendInfo.Builder setHealthCheckFirewallsConfigStateValue(int value)
       Output only. Health check firewalls configuration state for the backend.
       This is a result of the static firewall analysis (verifying that health
       check traffic from required IP ranges to the backend is allowed or not).
       The backend might still be unhealthy even if these firewalls are
       configured. Please refer to the documentation for more information:
       https://cloud.google.com/load-balancing/docs/firewall-rules
       
      .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for healthCheckFirewallsConfigState to set.
      Returns:
      This builder for chaining.
    • getHealthCheckFirewallsConfigState

      public LoadBalancerBackendInfo.HealthCheckFirewallsConfigState getHealthCheckFirewallsConfigState()
       Output only. Health check firewalls configuration state for the backend.
       This is a result of the static firewall analysis (verifying that health
       check traffic from required IP ranges to the backend is allowed or not).
       The backend might still be unhealthy even if these firewalls are
       configured. Please refer to the documentation for more information:
       https://cloud.google.com/load-balancing/docs/firewall-rules
       
      .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHealthCheckFirewallsConfigState in interface LoadBalancerBackendInfoOrBuilder
      Returns:
      The healthCheckFirewallsConfigState.
    • setHealthCheckFirewallsConfigState

       Output only. Health check firewalls configuration state for the backend.
       This is a result of the static firewall analysis (verifying that health
       check traffic from required IP ranges to the backend is allowed or not).
       The backend might still be unhealthy even if these firewalls are
       configured. Please refer to the documentation for more information:
       https://cloud.google.com/load-balancing/docs/firewall-rules
       
      .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The healthCheckFirewallsConfigState to set.
      Returns:
      This builder for chaining.
    • clearHealthCheckFirewallsConfigState

      public LoadBalancerBackendInfo.Builder clearHealthCheckFirewallsConfigState()
       Output only. Health check firewalls configuration state for the backend.
       This is a result of the static firewall analysis (verifying that health
       check traffic from required IP ranges to the backend is allowed or not).
       The backend might still be unhealthy even if these firewalls are
       configured. Please refer to the documentation for more information:
       https://cloud.google.com/load-balancing/docs/firewall-rules
       
      .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.