Class LoadBalancerBackend.Builder (1.7.0)

public static final class LoadBalancerBackend.Builder extends GeneratedMessageV3.Builder<LoadBalancerBackend.Builder> implements LoadBalancerBackendOrBuilder

For display only. Metadata associated with a specific load balancer backend.

Protobuf type google.cloud.networkmanagement.v1.LoadBalancerBackend

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllHealthCheckAllowingFirewallRules(Iterable<String> values)

public LoadBalancerBackend.Builder addAllHealthCheckAllowingFirewallRules(Iterable<String> values)

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Parameter
NameDescription
valuesIterable<String>

The healthCheckAllowingFirewallRules to add.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

addAllHealthCheckBlockingFirewallRules(Iterable<String> values)

public LoadBalancerBackend.Builder addAllHealthCheckBlockingFirewallRules(Iterable<String> values)

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Parameter
NameDescription
valuesIterable<String>

The healthCheckBlockingFirewallRules to add.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

addHealthCheckAllowingFirewallRules(String value)

public LoadBalancerBackend.Builder addHealthCheckAllowingFirewallRules(String value)

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Parameter
NameDescription
valueString

The healthCheckAllowingFirewallRules to add.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

addHealthCheckAllowingFirewallRulesBytes(ByteString value)

public LoadBalancerBackend.Builder addHealthCheckAllowingFirewallRulesBytes(ByteString value)

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Parameter
NameDescription
valueByteString

The bytes of the healthCheckAllowingFirewallRules to add.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

addHealthCheckBlockingFirewallRules(String value)

public LoadBalancerBackend.Builder addHealthCheckBlockingFirewallRules(String value)

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Parameter
NameDescription
valueString

The healthCheckBlockingFirewallRules to add.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

addHealthCheckBlockingFirewallRulesBytes(ByteString value)

public LoadBalancerBackend.Builder addHealthCheckBlockingFirewallRulesBytes(ByteString value)

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Parameter
NameDescription
valueByteString

The bytes of the healthCheckBlockingFirewallRules to add.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LoadBalancerBackend.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

build()

public LoadBalancerBackend build()
Returns
TypeDescription
LoadBalancerBackend

buildPartial()

public LoadBalancerBackend buildPartial()
Returns
TypeDescription
LoadBalancerBackend

clear()

public LoadBalancerBackend.Builder clear()
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

clearDisplayName()

public LoadBalancerBackend.Builder clearDisplayName()

Name of a Compute Engine instance or network endpoint.

string display_name = 1;

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LoadBalancerBackend.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

clearHealthCheckAllowingFirewallRules()

public LoadBalancerBackend.Builder clearHealthCheckAllowingFirewallRules()

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

clearHealthCheckBlockingFirewallRules()

public LoadBalancerBackend.Builder clearHealthCheckBlockingFirewallRules()

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

clearHealthCheckFirewallState()

public LoadBalancerBackend.Builder clearHealthCheckFirewallState()

State of the health check firewall configuration.

.google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3;

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LoadBalancerBackend.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

clearUri()

public LoadBalancerBackend.Builder clearUri()

URI of a Compute Engine instance or network endpoint.

string uri = 2;

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

clone()

public LoadBalancerBackend.Builder clone()
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

getDefaultInstanceForType()

public LoadBalancerBackend getDefaultInstanceForType()
Returns
TypeDescription
LoadBalancerBackend

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a Compute Engine instance or network endpoint.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a Compute Engine instance or network endpoint.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getHealthCheckAllowingFirewallRules(int index)

public String getHealthCheckAllowingFirewallRules(int index)

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The healthCheckAllowingFirewallRules at the given index.

getHealthCheckAllowingFirewallRulesBytes(int index)

public ByteString getHealthCheckAllowingFirewallRulesBytes(int index)

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the healthCheckAllowingFirewallRules at the given index.

getHealthCheckAllowingFirewallRulesCount()

public int getHealthCheckAllowingFirewallRulesCount()

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Returns
TypeDescription
int

The count of healthCheckAllowingFirewallRules.

getHealthCheckAllowingFirewallRulesList()

public ProtocolStringList getHealthCheckAllowingFirewallRulesList()

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the healthCheckAllowingFirewallRules.

getHealthCheckBlockingFirewallRules(int index)

public String getHealthCheckBlockingFirewallRules(int index)

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The healthCheckBlockingFirewallRules at the given index.

getHealthCheckBlockingFirewallRulesBytes(int index)

public ByteString getHealthCheckBlockingFirewallRulesBytes(int index)

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the healthCheckBlockingFirewallRules at the given index.

getHealthCheckBlockingFirewallRulesCount()

public int getHealthCheckBlockingFirewallRulesCount()

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Returns
TypeDescription
int

The count of healthCheckBlockingFirewallRules.

getHealthCheckBlockingFirewallRulesList()

public ProtocolStringList getHealthCheckBlockingFirewallRulesList()

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the healthCheckBlockingFirewallRules.

getHealthCheckFirewallState()

public LoadBalancerBackend.HealthCheckFirewallState getHealthCheckFirewallState()

State of the health check firewall configuration.

.google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3;

Returns
TypeDescription
LoadBalancerBackend.HealthCheckFirewallState

The healthCheckFirewallState.

getHealthCheckFirewallStateValue()

public int getHealthCheckFirewallStateValue()

State of the health check firewall configuration.

.google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for healthCheckFirewallState.

getUri()

public String getUri()

URI of a Compute Engine instance or network endpoint.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a Compute Engine instance or network endpoint.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LoadBalancerBackend other)

public LoadBalancerBackend.Builder mergeFrom(LoadBalancerBackend other)
Parameter
NameDescription
otherLoadBalancerBackend
Returns
TypeDescription
LoadBalancerBackend.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LoadBalancerBackend.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LoadBalancerBackend.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LoadBalancerBackend.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

setDisplayName(String value)

public LoadBalancerBackend.Builder setDisplayName(String value)

Name of a Compute Engine instance or network endpoint.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public LoadBalancerBackend.Builder setDisplayNameBytes(ByteString value)

Name of a Compute Engine instance or network endpoint.

string display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LoadBalancerBackend.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

setHealthCheckAllowingFirewallRules(int index, String value)

public LoadBalancerBackend.Builder setHealthCheckAllowingFirewallRules(int index, String value)

A list of firewall rule URIs allowing probes from health check IP ranges.

repeated string health_check_allowing_firewall_rules = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The healthCheckAllowingFirewallRules to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

setHealthCheckBlockingFirewallRules(int index, String value)

public LoadBalancerBackend.Builder setHealthCheckBlockingFirewallRules(int index, String value)

A list of firewall rule URIs blocking probes from health check IP ranges.

repeated string health_check_blocking_firewall_rules = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The healthCheckBlockingFirewallRules to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

setHealthCheckFirewallState(LoadBalancerBackend.HealthCheckFirewallState value)

public LoadBalancerBackend.Builder setHealthCheckFirewallState(LoadBalancerBackend.HealthCheckFirewallState value)

State of the health check firewall configuration.

.google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3;

Parameter
NameDescription
valueLoadBalancerBackend.HealthCheckFirewallState

The healthCheckFirewallState to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

setHealthCheckFirewallStateValue(int value)

public LoadBalancerBackend.Builder setHealthCheckFirewallStateValue(int value)

State of the health check firewall configuration.

.google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState health_check_firewall_state = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for healthCheckFirewallState to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LoadBalancerBackend.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LoadBalancerBackend.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LoadBalancerBackend.Builder
Overrides

setUri(String value)

public LoadBalancerBackend.Builder setUri(String value)

URI of a Compute Engine instance or network endpoint.

string uri = 2;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.

setUriBytes(ByteString value)

public LoadBalancerBackend.Builder setUriBytes(ByteString value)

URI of a Compute Engine instance or network endpoint.

string uri = 2;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
LoadBalancerBackend.Builder

This builder for chaining.