Class EkmConnection.Builder (0.3.0)

public static final class EkmConnection.Builder extends GeneratedMessageV3.Builder<EkmConnection.Builder> implements EkmConnectionOrBuilder

Details about the EKM connection

Protobuf type google.cloud.cloudcontrolspartner.v1beta.EkmConnection

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EkmConnection build()
Returns
TypeDescription
EkmConnection

buildPartial()

public EkmConnection buildPartial()
Returns
TypeDescription
EkmConnection

clear()

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

clearConnectionError()

public EkmConnection.Builder clearConnectionError()

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Returns
TypeDescription
EkmConnection.Builder

clearConnectionName()

public EkmConnection.Builder clearConnectionName()

Resource name of the EKM connection in the format: projects/{project}/locations/{location}/ekmConnections/{ekm_connection}

string connection_name = 1;

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

clearConnectionState()

public EkmConnection.Builder clearConnectionState()

Output only. The connection state

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EkmConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EkmConnection.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public EkmConnection.Builder clone()
Returns
TypeDescription
EkmConnection.Builder
Overrides

getConnectionError()

public EkmConnection.ConnectionError getConnectionError()

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Returns
TypeDescription
EkmConnection.ConnectionError

The connectionError.

getConnectionErrorBuilder()

public EkmConnection.ConnectionError.Builder getConnectionErrorBuilder()

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Returns
TypeDescription
EkmConnection.ConnectionError.Builder

getConnectionErrorOrBuilder()

public EkmConnection.ConnectionErrorOrBuilder getConnectionErrorOrBuilder()

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Returns
TypeDescription
EkmConnection.ConnectionErrorOrBuilder

getConnectionName()

public String getConnectionName()

Resource name of the EKM connection in the format: projects/{project}/locations/{location}/ekmConnections/{ekm_connection}

string connection_name = 1;

Returns
TypeDescription
String

The connectionName.

getConnectionNameBytes()

public ByteString getConnectionNameBytes()

Resource name of the EKM connection in the format: projects/{project}/locations/{location}/ekmConnections/{ekm_connection}

string connection_name = 1;

Returns
TypeDescription
ByteString

The bytes for connectionName.

getConnectionState()

public EkmConnection.ConnectionState getConnectionState()

Output only. The connection state

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EkmConnection.ConnectionState

The connectionState.

getConnectionStateValue()

public int getConnectionStateValue()

Output only. The connection state

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for connectionState.

getDefaultInstanceForType()

public EkmConnection getDefaultInstanceForType()
Returns
TypeDescription
EkmConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasConnectionError()

public boolean hasConnectionError()

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Returns
TypeDescription
boolean

Whether the connectionError field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConnectionError(EkmConnection.ConnectionError value)

public EkmConnection.Builder mergeConnectionError(EkmConnection.ConnectionError value)

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Parameter
NameDescription
valueEkmConnection.ConnectionError
Returns
TypeDescription
EkmConnection.Builder

mergeFrom(EkmConnection other)

public EkmConnection.Builder mergeFrom(EkmConnection other)
Parameter
NameDescription
otherEkmConnection
Returns
TypeDescription
EkmConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EkmConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EkmConnection.Builder
Overrides

setConnectionError(EkmConnection.ConnectionError value)

public EkmConnection.Builder setConnectionError(EkmConnection.ConnectionError value)

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Parameter
NameDescription
valueEkmConnection.ConnectionError
Returns
TypeDescription
EkmConnection.Builder

setConnectionError(EkmConnection.ConnectionError.Builder builderForValue)

public EkmConnection.Builder setConnectionError(EkmConnection.ConnectionError.Builder builderForValue)

The connection error that occurred if any

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionError connection_error = 3;

Parameter
NameDescription
builderForValueEkmConnection.ConnectionError.Builder
Returns
TypeDescription
EkmConnection.Builder

setConnectionName(String value)

public EkmConnection.Builder setConnectionName(String value)

Resource name of the EKM connection in the format: projects/{project}/locations/{location}/ekmConnections/{ekm_connection}

string connection_name = 1;

Parameter
NameDescription
valueString

The connectionName to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

setConnectionNameBytes(ByteString value)

public EkmConnection.Builder setConnectionNameBytes(ByteString value)

Resource name of the EKM connection in the format: projects/{project}/locations/{location}/ekmConnections/{ekm_connection}

string connection_name = 1;

Parameter
NameDescription
valueByteString

The bytes for connectionName to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

setConnectionState(EkmConnection.ConnectionState value)

public EkmConnection.Builder setConnectionState(EkmConnection.ConnectionState value)

Output only. The connection state

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueEkmConnection.ConnectionState

The connectionState to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

setConnectionStateValue(int value)

public EkmConnection.Builder setConnectionStateValue(int value)

Output only. The connection state

.google.cloud.cloudcontrolspartner.v1beta.EkmConnection.ConnectionState connection_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for connectionState to set.

Returns
TypeDescription
EkmConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public EkmConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EkmConnection.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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