Class BackendServiceHAPolicyLeader (1.74.0)

public final class BackendServiceHAPolicyLeader extends GeneratedMessageV3 implements BackendServiceHAPolicyLeaderOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceHAPolicyLeader

Static Fields

BACKEND_GROUP_FIELD_NUMBER

public static final int BACKEND_GROUP_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_ENDPOINT_FIELD_NUMBER

public static final int NETWORK_ENDPOINT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackendServiceHAPolicyLeader getDefaultInstance()
Returns
Type Description
BackendServiceHAPolicyLeader

getDescriptor()

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

newBuilder()

public static BackendServiceHAPolicyLeader.Builder newBuilder()
Returns
Type Description
BackendServiceHAPolicyLeader.Builder

newBuilder(BackendServiceHAPolicyLeader prototype)

public static BackendServiceHAPolicyLeader.Builder newBuilder(BackendServiceHAPolicyLeader prototype)
Parameter
Name Description
prototype BackendServiceHAPolicyLeader
Returns
Type Description
BackendServiceHAPolicyLeader.Builder

parseDelimitedFrom(InputStream input)

public static BackendServiceHAPolicyLeader parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceHAPolicyLeader parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackendServiceHAPolicyLeader parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceHAPolicyLeader parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackendServiceHAPolicyLeader parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceHAPolicyLeader parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackendServiceHAPolicyLeader parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceHAPolicyLeader parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackendServiceHAPolicyLeader parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceHAPolicyLeader parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackendServiceHAPolicyLeader parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceHAPolicyLeader parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceHAPolicyLeader
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackendServiceHAPolicyLeader> parser()
Returns
Type Description
Parser<BackendServiceHAPolicyLeader>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBackendGroup()

public String getBackendGroup()

A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with GCE_VM_IP endpoints that the leader is attached to. The leader's backendGroup must already be specified as a backend of this backend service. Removing a backend that is designated as the leader's backendGroup is not permitted.

optional string backend_group = 457777428;

Returns
Type Description
String

The backendGroup.

getBackendGroupBytes()

public ByteString getBackendGroupBytes()

A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with GCE_VM_IP endpoints that the leader is attached to. The leader's backendGroup must already be specified as a backend of this backend service. Removing a backend that is designated as the leader's backendGroup is not permitted.

optional string backend_group = 457777428;

Returns
Type Description
ByteString

The bytes for backendGroup.

getDefaultInstanceForType()

public BackendServiceHAPolicyLeader getDefaultInstanceForType()
Returns
Type Description
BackendServiceHAPolicyLeader

getNetworkEndpoint()

public BackendServiceHAPolicyLeaderNetworkEndpoint getNetworkEndpoint()

The network endpoint within the leader.backendGroup that is designated as the leader. This network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy.

optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;

Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpoint

The networkEndpoint.

getNetworkEndpointOrBuilder()

public BackendServiceHAPolicyLeaderNetworkEndpointOrBuilder getNetworkEndpointOrBuilder()

The network endpoint within the leader.backendGroup that is designated as the leader. This network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy.

optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;

Returns
Type Description
BackendServiceHAPolicyLeaderNetworkEndpointOrBuilder

getParserForType()

public Parser<BackendServiceHAPolicyLeader> getParserForType()
Returns
Type Description
Parser<BackendServiceHAPolicyLeader>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBackendGroup()

public boolean hasBackendGroup()

A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with GCE_VM_IP endpoints that the leader is attached to. The leader's backendGroup must already be specified as a backend of this backend service. Removing a backend that is designated as the leader's backendGroup is not permitted.

optional string backend_group = 457777428;

Returns
Type Description
boolean

Whether the backendGroup field is set.

hasNetworkEndpoint()

public boolean hasNetworkEndpoint()

The network endpoint within the leader.backendGroup that is designated as the leader. This network endpoint cannot be detached from the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy.

optional .google.cloud.compute.v1.BackendServiceHAPolicyLeaderNetworkEndpoint network_endpoint = 56789126;

Returns
Type Description
boolean

Whether the networkEndpoint field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackendServiceHAPolicyLeader.Builder newBuilderForType()
Returns
Type Description
BackendServiceHAPolicyLeader.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackendServiceHAPolicyLeader.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackendServiceHAPolicyLeader.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BackendServiceHAPolicyLeader.Builder toBuilder()
Returns
Type Description
BackendServiceHAPolicyLeader.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException