Class BackendServiceGroupHealth.Builder (1.8.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.HealthStatus>
Returns
TypeDescription
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
NameDescription
valueHealthStatus
Returns
TypeDescription
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
NameDescription
builderForValueHealthStatus.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueHealthStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueHealthStatus.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
HealthStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackendServiceGroupHealth build()
Returns
TypeDescription
BackendServiceGroupHealth

buildPartial()

public BackendServiceGroupHealth buildPartial()
Returns
TypeDescription
BackendServiceGroupHealth

clear()

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

clearAnnotations()

public BackendServiceGroupHealth.Builder clearAnnotations()
Returns
TypeDescription
BackendServiceGroupHealth.Builder

clearField(Descriptors.FieldDescriptor field)

public BackendServiceGroupHealth.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BackendServiceGroupHealth.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public BackendServiceGroupHealth.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Metadata defined as annotations on the network endpoint group.

map<string, string> annotations = 112032548;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public BackendServiceGroupHealth getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceGroupHealth

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for kind.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
boolean

Whether the kind field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackendServiceGroupHealth other)

public BackendServiceGroupHealth.Builder mergeFrom(BackendServiceGroupHealth other)
Parameter
NameDescription
otherBackendServiceGroupHealth
Returns
TypeDescription
BackendServiceGroupHealth.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceGroupHealth.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BackendServiceGroupHealth.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceGroupHealth.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueHealthStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueHealthStatus.Builder
Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackendServiceGroupHealth.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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