Class LoadBalancerInfo.Builder (1.9.0)

public static final class LoadBalancerInfo.Builder extends GeneratedMessageV3.Builder<LoadBalancerInfo.Builder> implements LoadBalancerInfoOrBuilder

For display only. Metadata associated with a load balancer.

Protobuf type google.cloud.networkmanagement.v1beta1.LoadBalancerInfo

Static Methods

getDescriptor()

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

Methods

addAllBackends(Iterable<? extends LoadBalancerBackend> values)

public LoadBalancerInfo.Builder addAllBackends(Iterable<? extends LoadBalancerBackend> values)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackend>
Returns
TypeDescription
LoadBalancerInfo.Builder

addBackends(LoadBalancerBackend value)

public LoadBalancerInfo.Builder addBackends(LoadBalancerBackend value)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
valueLoadBalancerBackend
Returns
TypeDescription
LoadBalancerInfo.Builder

addBackends(LoadBalancerBackend.Builder builderForValue)

public LoadBalancerInfo.Builder addBackends(LoadBalancerBackend.Builder builderForValue)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
builderForValueLoadBalancerBackend.Builder
Returns
TypeDescription
LoadBalancerInfo.Builder

addBackends(int index, LoadBalancerBackend value)

public LoadBalancerInfo.Builder addBackends(int index, LoadBalancerBackend value)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameters
NameDescription
indexint
valueLoadBalancerBackend
Returns
TypeDescription
LoadBalancerInfo.Builder

addBackends(int index, LoadBalancerBackend.Builder builderForValue)

public LoadBalancerInfo.Builder addBackends(int index, LoadBalancerBackend.Builder builderForValue)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameters
NameDescription
indexint
builderForValueLoadBalancerBackend.Builder
Returns
TypeDescription
LoadBalancerInfo.Builder

addBackendsBuilder()

public LoadBalancerBackend.Builder addBackendsBuilder()

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Returns
TypeDescription
LoadBalancerBackend.Builder

addBackendsBuilder(int index)

public LoadBalancerBackend.Builder addBackendsBuilder(int index)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LoadBalancerBackend.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LoadBalancerInfo build()
Returns
TypeDescription
LoadBalancerInfo

buildPartial()

public LoadBalancerInfo buildPartial()
Returns
TypeDescription
LoadBalancerInfo

clear()

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

clearBackendType()

public LoadBalancerInfo.Builder clearBackendType()

Type of load balancer's backend configuration.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType backend_type = 4;

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

clearBackendUri()

public LoadBalancerInfo.Builder clearBackendUri()

Backend configuration URI.

string backend_uri = 5;

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

clearBackends()

public LoadBalancerInfo.Builder clearBackends()

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Returns
TypeDescription
LoadBalancerInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHealthCheckUri()

public LoadBalancerInfo.Builder clearHealthCheckUri()

URI of the health check for the load balancer.

string health_check_uri = 2;

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

clearLoadBalancerType()

public LoadBalancerInfo.Builder clearLoadBalancerType()

Type of the load balancer.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1;

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBackendType()

public LoadBalancerInfo.BackendType getBackendType()

Type of load balancer's backend configuration.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType backend_type = 4;

Returns
TypeDescription
LoadBalancerInfo.BackendType

The backendType.

getBackendTypeValue()

public int getBackendTypeValue()

Type of load balancer's backend configuration.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType backend_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for backendType.

getBackendUri()

public String getBackendUri()

Backend configuration URI.

string backend_uri = 5;

Returns
TypeDescription
String

The backendUri.

getBackendUriBytes()

public ByteString getBackendUriBytes()

Backend configuration URI.

string backend_uri = 5;

Returns
TypeDescription
ByteString

The bytes for backendUri.

getBackends(int index)

public LoadBalancerBackend getBackends(int index)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LoadBalancerBackend

getBackendsBuilder(int index)

public LoadBalancerBackend.Builder getBackendsBuilder(int index)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LoadBalancerBackend.Builder

getBackendsBuilderList()

public List<LoadBalancerBackend.Builder> getBackendsBuilderList()

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Returns
TypeDescription
List<Builder>

getBackendsCount()

public int getBackendsCount()

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Returns
TypeDescription
int

getBackendsList()

public List<LoadBalancerBackend> getBackendsList()

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Returns
TypeDescription
List<LoadBalancerBackend>

getBackendsOrBuilder(int index)

public LoadBalancerBackendOrBuilder getBackendsOrBuilder(int index)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LoadBalancerBackendOrBuilder

getBackendsOrBuilderList()

public List<? extends LoadBalancerBackendOrBuilder> getBackendsOrBuilderList()

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Returns
TypeDescription
List<? extends com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendOrBuilder>

getDefaultInstanceForType()

public LoadBalancerInfo getDefaultInstanceForType()
Returns
TypeDescription
LoadBalancerInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHealthCheckUri()

public String getHealthCheckUri()

URI of the health check for the load balancer.

string health_check_uri = 2;

Returns
TypeDescription
String

The healthCheckUri.

getHealthCheckUriBytes()

public ByteString getHealthCheckUriBytes()

URI of the health check for the load balancer.

string health_check_uri = 2;

Returns
TypeDescription
ByteString

The bytes for healthCheckUri.

getLoadBalancerType()

public LoadBalancerInfo.LoadBalancerType getLoadBalancerType()

Type of the load balancer.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1;

Returns
TypeDescription
LoadBalancerInfo.LoadBalancerType

The loadBalancerType.

getLoadBalancerTypeValue()

public int getLoadBalancerTypeValue()

Type of the load balancer.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for loadBalancerType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LoadBalancerInfo other)

public LoadBalancerInfo.Builder mergeFrom(LoadBalancerInfo other)
Parameter
NameDescription
otherLoadBalancerInfo
Returns
TypeDescription
LoadBalancerInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBackends(int index)

public LoadBalancerInfo.Builder removeBackends(int index)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LoadBalancerInfo.Builder

setBackendType(LoadBalancerInfo.BackendType value)

public LoadBalancerInfo.Builder setBackendType(LoadBalancerInfo.BackendType value)

Type of load balancer's backend configuration.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType backend_type = 4;

Parameter
NameDescription
valueLoadBalancerInfo.BackendType

The backendType to set.

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

setBackendTypeValue(int value)

public LoadBalancerInfo.Builder setBackendTypeValue(int value)

Type of load balancer's backend configuration.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType backend_type = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

setBackendUri(String value)

public LoadBalancerInfo.Builder setBackendUri(String value)

Backend configuration URI.

string backend_uri = 5;

Parameter
NameDescription
valueString

The backendUri to set.

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

setBackendUriBytes(ByteString value)

public LoadBalancerInfo.Builder setBackendUriBytes(ByteString value)

Backend configuration URI.

string backend_uri = 5;

Parameter
NameDescription
valueByteString

The bytes for backendUri to set.

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

setBackends(int index, LoadBalancerBackend value)

public LoadBalancerInfo.Builder setBackends(int index, LoadBalancerBackend value)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameters
NameDescription
indexint
valueLoadBalancerBackend
Returns
TypeDescription
LoadBalancerInfo.Builder

setBackends(int index, LoadBalancerBackend.Builder builderForValue)

public LoadBalancerInfo.Builder setBackends(int index, LoadBalancerBackend.Builder builderForValue)

Information for the loadbalancer backends.

repeated .google.cloud.networkmanagement.v1beta1.LoadBalancerBackend backends = 3;

Parameters
NameDescription
indexint
builderForValueLoadBalancerBackend.Builder
Returns
TypeDescription
LoadBalancerInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHealthCheckUri(String value)

public LoadBalancerInfo.Builder setHealthCheckUri(String value)

URI of the health check for the load balancer.

string health_check_uri = 2;

Parameter
NameDescription
valueString

The healthCheckUri to set.

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

setHealthCheckUriBytes(ByteString value)

public LoadBalancerInfo.Builder setHealthCheckUriBytes(ByteString value)

URI of the health check for the load balancer.

string health_check_uri = 2;

Parameter
NameDescription
valueByteString

The bytes for healthCheckUri to set.

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

setLoadBalancerType(LoadBalancerInfo.LoadBalancerType value)

public LoadBalancerInfo.Builder setLoadBalancerType(LoadBalancerInfo.LoadBalancerType value)

Type of the load balancer.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1;

Parameter
NameDescription
valueLoadBalancerInfo.LoadBalancerType

The loadBalancerType to set.

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

setLoadBalancerTypeValue(int value)

public LoadBalancerInfo.Builder setLoadBalancerTypeValue(int value)

Type of the load balancer.

.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType load_balancer_type = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
LoadBalancerInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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