Class HealthSourcesGetHealthResponseSourceInfo.Builder (1.105.0)

public static final class HealthSourcesGetHealthResponseSourceInfo.Builder extends GeneratedMessage.Builder<HealthSourcesGetHealthResponseSourceInfo.Builder> implements HealthSourcesGetHealthResponseSourceInfoOrBuilder

Protobuf type google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfo

Static Methods

getDescriptor()

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

Methods

addAllBackends(Iterable<? extends HealthSourcesGetHealthResponseSourceInfoBackendInfo> values)

public HealthSourcesGetHealthResponseSourceInfo.Builder addAllBackends(Iterable<? extends HealthSourcesGetHealthResponseSourceInfoBackendInfo> values)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

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

addBackends(HealthSourcesGetHealthResponseSourceInfoBackendInfo value)

public HealthSourcesGetHealthResponseSourceInfo.Builder addBackends(HealthSourcesGetHealthResponseSourceInfoBackendInfo value)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameter
Name Description
value HealthSourcesGetHealthResponseSourceInfoBackendInfo
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

addBackends(HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder builderForValue)

public HealthSourcesGetHealthResponseSourceInfo.Builder addBackends(HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder builderForValue)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameter
Name Description
builderForValue HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

addBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo value)

public HealthSourcesGetHealthResponseSourceInfo.Builder addBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo value)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameters
Name Description
index int
value HealthSourcesGetHealthResponseSourceInfoBackendInfo
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

addBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder builderForValue)

public HealthSourcesGetHealthResponseSourceInfo.Builder addBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder builderForValue)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameters
Name Description
index int
builderForValue HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

addBackendsBuilder()

public HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder addBackendsBuilder()

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder

addBackendsBuilder(int index)

public HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder addBackendsBuilder(int index)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameter
Name Description
index int
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder

build()

public HealthSourcesGetHealthResponseSourceInfo build()
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo

buildPartial()

public HealthSourcesGetHealthResponseSourceInfo buildPartial()
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo

clear()

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

clearBackends()

public HealthSourcesGetHealthResponseSourceInfo.Builder clearBackends()

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

clearForwardingRule()

public HealthSourcesGetHealthResponseSourceInfo.Builder clearForwardingRule()

Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB backend service.

optional string forwarding_rule = 269964030;

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

This builder for chaining.

clearSource()

public HealthSourcesGetHealthResponseSourceInfo.Builder clearSource()

Fully qualified URL of the associated source resource. This is always a backend service URL.

optional string source = 177235995;

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

This builder for chaining.

getBackends(int index)

public HealthSourcesGetHealthResponseSourceInfoBackendInfo getBackends(int index)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameter
Name Description
index int
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfoBackendInfo

getBackendsBuilder(int index)

public HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder getBackendsBuilder(int index)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameter
Name Description
index int
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder

getBackendsBuilderList()

public List<HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder> getBackendsBuilderList()

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Returns
Type Description
List<Builder>

getBackendsCount()

public int getBackendsCount()

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Returns
Type Description
int

getBackendsList()

public List<HealthSourcesGetHealthResponseSourceInfoBackendInfo> getBackendsList()

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Returns
Type Description
List<HealthSourcesGetHealthResponseSourceInfoBackendInfo>

getBackendsOrBuilder(int index)

public HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder getBackendsOrBuilder(int index)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameter
Name Description
index int
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder

getBackendsOrBuilderList()

public List<? extends HealthSourcesGetHealthResponseSourceInfoBackendInfoOrBuilder> getBackendsOrBuilderList()

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

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

getDefaultInstanceForType()

public HealthSourcesGetHealthResponseSourceInfo getDefaultInstanceForType()
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo

getDescriptorForType()

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

getForwardingRule()

public String getForwardingRule()

Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB backend service.

optional string forwarding_rule = 269964030;

Returns
Type Description
String

The forwardingRule.

getForwardingRuleBytes()

public ByteString getForwardingRuleBytes()

Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB backend service.

optional string forwarding_rule = 269964030;

Returns
Type Description
ByteString

The bytes for forwardingRule.

getSource()

public String getSource()

Fully qualified URL of the associated source resource. This is always a backend service URL.

optional string source = 177235995;

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Fully qualified URL of the associated source resource. This is always a backend service URL.

optional string source = 177235995;

Returns
Type Description
ByteString

The bytes for source.

hasForwardingRule()

public boolean hasForwardingRule()

Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB backend service.

optional string forwarding_rule = 269964030;

Returns
Type Description
boolean

Whether the forwardingRule field is set.

hasSource()

public boolean hasSource()

Fully qualified URL of the associated source resource. This is always a backend service URL.

optional string source = 177235995;

Returns
Type Description
boolean

Whether the source field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HealthSourcesGetHealthResponseSourceInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeBackends(int index)

public HealthSourcesGetHealthResponseSourceInfo.Builder removeBackends(int index)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameter
Name Description
index int
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

setBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo value)

public HealthSourcesGetHealthResponseSourceInfo.Builder setBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo value)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameters
Name Description
index int
value HealthSourcesGetHealthResponseSourceInfoBackendInfo
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

setBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder builderForValue)

public HealthSourcesGetHealthResponseSourceInfo.Builder setBackends(int index, HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder builderForValue)

Represents an instance group or network endpoint group behind the source backend service. Only used if the sourceType of the regionHealthSource is BACKEND_SERVICE.

repeated .google.cloud.compute.v1.HealthSourcesGetHealthResponseSourceInfoBackendInfo backends = 510839903;

Parameters
Name Description
index int
builderForValue HealthSourcesGetHealthResponseSourceInfoBackendInfo.Builder
Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

setForwardingRule(String value)

public HealthSourcesGetHealthResponseSourceInfo.Builder setForwardingRule(String value)

Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB backend service.

optional string forwarding_rule = 269964030;

Parameter
Name Description
value String

The forwardingRule to set.

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public HealthSourcesGetHealthResponseSourceInfo.Builder setForwardingRuleBytes(ByteString value)

Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB backend service.

optional string forwarding_rule = 269964030;

Parameter
Name Description
value ByteString

The bytes for forwardingRule to set.

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

This builder for chaining.

setSource(String value)

public HealthSourcesGetHealthResponseSourceInfo.Builder setSource(String value)

Fully qualified URL of the associated source resource. This is always a backend service URL.

optional string source = 177235995;

Parameter
Name Description
value String

The source to set.

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public HealthSourcesGetHealthResponseSourceInfo.Builder setSourceBytes(ByteString value)

Fully qualified URL of the associated source resource. This is always a backend service URL.

optional string source = 177235995;

Parameter
Name Description
value ByteString

The bytes for source to set.

Returns
Type Description
HealthSourcesGetHealthResponseSourceInfo.Builder

This builder for chaining.