Class BackendServiceGroupHealth.Builder (1.65.0)

public static final class BackendServiceGroupHealth.Builder extends GeneratedMessageV3.Builder<BackendServiceGroupHealth.Builder> implements BackendServiceGroupHealthOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceGroupHealth

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllHealthStatus(Iterable<? extends HealthStatus> values)

public BackendServiceGroupHealth.Builder addAllHealthStatus(Iterable<? extends HealthStatus> values)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.HealthStatus>
Returns
Type Description
BackendServiceGroupHealth.Builder

addHealthStatus(HealthStatus value)

public BackendServiceGroupHealth.Builder addHealthStatus(HealthStatus value)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
value HealthStatus
Returns
Type Description
BackendServiceGroupHealth.Builder

addHealthStatus(HealthStatus.Builder builderForValue)

public BackendServiceGroupHealth.Builder addHealthStatus(HealthStatus.Builder builderForValue)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
builderForValue HealthStatus.Builder
Returns
Type Description
BackendServiceGroupHealth.Builder

addHealthStatus(int index, HealthStatus value)

public BackendServiceGroupHealth.Builder addHealthStatus(int index, HealthStatus value)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
value HealthStatus
Returns
Type Description
BackendServiceGroupHealth.Builder

addHealthStatus(int index, HealthStatus.Builder builderForValue)

public BackendServiceGroupHealth.Builder addHealthStatus(int index, HealthStatus.Builder builderForValue)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
builderForValue HealthStatus.Builder
Returns
Type Description
BackendServiceGroupHealth.Builder

addHealthStatusBuilder()

public HealthStatus.Builder addHealthStatusBuilder()

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
HealthStatus.Builder

addHealthStatusBuilder(int index)

public HealthStatus.Builder addHealthStatusBuilder(int index)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceGroupHealth.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

build()

public BackendServiceGroupHealth build()
Returns
Type Description
BackendServiceGroupHealth

buildPartial()

public BackendServiceGroupHealth buildPartial()
Returns
Type Description
BackendServiceGroupHealth

clear()

public BackendServiceGroupHealth.Builder clear()
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

clearAnnotations()

public BackendServiceGroupHealth.Builder clearAnnotations()
Returns
Type Description
BackendServiceGroupHealth.Builder

clearField(Descriptors.FieldDescriptor field)

public BackendServiceGroupHealth.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

clearHealthStatus()

public BackendServiceGroupHealth.Builder clearHealthStatus()

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
BackendServiceGroupHealth.Builder

clearKind()

public BackendServiceGroupHealth.Builder clearKind()

[Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.

optional string kind = 3292052;

Returns
Type Description
BackendServiceGroupHealth.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceGroupHealth.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

clone()

public BackendServiceGroupHealth.Builder clone()
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public BackendServiceGroupHealth getDefaultInstanceForType()
Returns
Type Description
BackendServiceGroupHealth

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHealthStatus(int index)

public HealthStatus getHealthStatus(int index)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatus

getHealthStatusBuilder(int index)

public HealthStatus.Builder getHealthStatusBuilder(int index)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatus.Builder

getHealthStatusBuilderList()

public List<HealthStatus.Builder> getHealthStatusBuilderList()

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
List<Builder>

getHealthStatusCount()

public int getHealthStatusCount()

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
int

getHealthStatusList()

public List<HealthStatus> getHealthStatusList()

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
List<HealthStatus>

getHealthStatusOrBuilder(int index)

public HealthStatusOrBuilder getHealthStatusOrBuilder(int index)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatusOrBuilder

getHealthStatusOrBuilderList()

public List<? extends HealthStatusOrBuilder> getHealthStatusOrBuilderList()

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.HealthStatusOrBuilder>

getKind()

public String getKind()

[Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

hasKind()

public boolean hasKind()

[Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackendServiceGroupHealth other)

public BackendServiceGroupHealth.Builder mergeFrom(BackendServiceGroupHealth other)
Parameter
Name Description
other BackendServiceGroupHealth
Returns
Type Description
BackendServiceGroupHealth.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceGroupHealth.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackendServiceGroupHealth.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceGroupHealth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

putAllAnnotations(Map<String,String> values)

public BackendServiceGroupHealth.Builder putAllAnnotations(Map<String,String> values)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
BackendServiceGroupHealth.Builder

putAnnotations(String key, String value)

public BackendServiceGroupHealth.Builder putAnnotations(String key, String value)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameters
Name Description
key String
value String
Returns
Type Description
BackendServiceGroupHealth.Builder

removeAnnotations(String key)

public BackendServiceGroupHealth.Builder removeAnnotations(String key)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameter
Name Description
key String
Returns
Type Description
BackendServiceGroupHealth.Builder

removeHealthStatus(int index)

public BackendServiceGroupHealth.Builder removeHealthStatus(int index)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
BackendServiceGroupHealth.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceGroupHealth.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

setHealthStatus(int index, HealthStatus value)

public BackendServiceGroupHealth.Builder setHealthStatus(int index, HealthStatus value)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
value HealthStatus
Returns
Type Description
BackendServiceGroupHealth.Builder

setHealthStatus(int index, HealthStatus.Builder builderForValue)

public BackendServiceGroupHealth.Builder setHealthStatus(int index, HealthStatus.Builder builderForValue)

Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks.

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
builderForValue HealthStatus.Builder
Returns
Type Description
BackendServiceGroupHealth.Builder

setKind(String value)

public BackendServiceGroupHealth.Builder setKind(String value)

[Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
BackendServiceGroupHealth.Builder

This builder for chaining.

setKindBytes(ByteString value)

public BackendServiceGroupHealth.Builder setKindBytes(ByteString value)

[Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
BackendServiceGroupHealth.Builder

This builder for chaining.

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

public BackendServiceGroupHealth.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceGroupHealth.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceGroupHealth.Builder
Overrides