Class BackendServiceHAPolicyLeaderNetworkEndpoint.Builder (1.74.0)

public static final class BackendServiceHAPolicyLeaderNetworkEndpoint.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public BackendServiceHAPolicyLeaderNetworkEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceHAPolicyLeaderNetworkEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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