Class BackendServiceHAPolicyLeaderNetworkEndpoint.Builder (1.93.0)

public static final class BackendServiceHAPolicyLeaderNetworkEndpoint.Builder extends GeneratedMessage.Builder<BackendServiceHAPolicyLeaderNetworkEndpoint.Builder> implements BackendServiceHAPolicyLeaderNetworkEndpointOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint

Static Methods

getDescriptor()

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

Methods

build()

public BackendServiceHAPolicyLeaderNetworkEndpoint build()
Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint

buildPartial()

public BackendServiceHAPolicyLeaderNetworkEndpoint buildPartial()
Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint

clear()

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

clearInstance()

public BackendServiceHAPolicyLeaderNetworkEndpoint.Builder clearInstance()

The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup.

The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use

optional string instance = 18257045;

Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint.Builder

This builder for chaining.

getDefaultInstanceForType()

public BackendServiceHAPolicyLeaderNetworkEndpoint getDefaultInstanceForType()
Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint

getDescriptorForType()

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

getInstance()

public String getInstance()

The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup.

The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use

optional string instance = 18257045;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup.

The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use

optional string instance = 18257045;

Returns
Type Description
ByteString

The bytes for instance.

hasInstance()

public boolean hasInstance()

The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup.

The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use

optional string instance = 18257045;

Returns
Type Description
boolean

Whether the instance field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackendServiceHAPolicyLeaderNetworkEndpoint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setInstance(String value)

public BackendServiceHAPolicyLeaderNetworkEndpoint.Builder setInstance(String value)

The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup.

The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use

optional string instance = 18257045;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public BackendServiceHAPolicyLeaderNetworkEndpoint.Builder setInstanceBytes(ByteString value)

The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the haPolicy.leader.backendGroup.

The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the following IAM permission on the specified resource instance: compute.instances.use

optional string instance = 18257045;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint.Builder

This builder for chaining.