Class DatacenterConnector.Builder (1.2.0)

public static final class DatacenterConnector.Builder extends GeneratedMessageV3.Builder<DatacenterConnector.Builder> implements DatacenterConnectorOrBuilder

DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.

Protobuf type google.cloud.vmmigration.v1.DatacenterConnector

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatacenterConnector build()
Returns
TypeDescription
DatacenterConnector

buildPartial()

public DatacenterConnector buildPartial()
Returns
TypeDescription
DatacenterConnector

clear()

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

clearBucket()

public DatacenterConnector.Builder clearBucket()

Output only. The communication channel between the datacenter connector and GCP.

string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

clearCreateTime()

public DatacenterConnector.Builder clearCreateTime()

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.Builder

clearError()

public DatacenterConnector.Builder clearError()

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DatacenterConnector.Builder clearName()

Output only. The connector's name.

string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegistrationId()

public DatacenterConnector.Builder clearRegistrationId()

Immutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified.

string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

clearServiceAccount()

public DatacenterConnector.Builder clearServiceAccount()

The service account to use in the connector when communicating with the cloud.

string service_account = 5;

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

clearState()

public DatacenterConnector.Builder clearState()

Output only. State of the DatacenterConnector, as determined by the health checks.

.google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

clearStateTime()

public DatacenterConnector.Builder clearStateTime()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.Builder

clearUpdateTime()

public DatacenterConnector.Builder clearUpdateTime()

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.Builder

clearVersion()

public DatacenterConnector.Builder clearVersion()

The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.

string version = 6;

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

clone()

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

getBucket()

public String getBucket()

Output only. The communication channel between the datacenter connector and GCP.

string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Output only. The communication channel between the datacenter connector and GCP.

string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for bucket.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DatacenterConnector getDefaultInstanceForType()
Returns
TypeDescription
DatacenterConnector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getName()

public String getName()

Output only. The connector's name.

string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The connector's name.

string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getRegistrationId()

public String getRegistrationId()

Immutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified.

string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The registrationId.

getRegistrationIdBytes()

public ByteString getRegistrationIdBytes()

Immutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified.

string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for registrationId.

getServiceAccount()

public String getServiceAccount()

The service account to use in the connector when communicating with the cloud.

string service_account = 5;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

The service account to use in the connector when communicating with the cloud.

string service_account = 5;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getState()

public DatacenterConnector.State getState()

Output only. State of the DatacenterConnector, as determined by the health checks.

.google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DatacenterConnector.State

The state.

getStateTime()

public Timestamp getStateTime()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The stateTime.

getStateTimeBuilder()

public Timestamp.Builder getStateTimeBuilder()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getStateTimeOrBuilder()

public TimestampOrBuilder getStateTimeOrBuilder()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getStateValue()

public int getStateValue()

Output only. State of the DatacenterConnector, as determined by the health checks.

.google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getVersion()

public String getVersion()

The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.

string version = 6;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.

string version = 6;

Returns
TypeDescription
ByteString

The bytes for version.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasError()

public boolean hasError()

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the error field is set.

hasStateTime()

public boolean hasStateTime()

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the stateTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public DatacenterConnector.Builder mergeCreateTime(Timestamp value)

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DatacenterConnector.Builder

mergeError(Status value)

public DatacenterConnector.Builder mergeError(Status value)

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
DatacenterConnector.Builder

mergeFrom(DatacenterConnector other)

public DatacenterConnector.Builder mergeFrom(DatacenterConnector other)
Parameter
NameDescription
otherDatacenterConnector
Returns
TypeDescription
DatacenterConnector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStateTime(Timestamp value)

public DatacenterConnector.Builder mergeStateTime(Timestamp value)

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DatacenterConnector.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public DatacenterConnector.Builder mergeUpdateTime(Timestamp value)

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DatacenterConnector.Builder

setBucket(String value)

public DatacenterConnector.Builder setBucket(String value)

Output only. The communication channel between the datacenter connector and GCP.

string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The bucket to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public DatacenterConnector.Builder setBucketBytes(ByteString value)

Output only. The communication channel between the datacenter connector and GCP.

string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for bucket to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public DatacenterConnector.Builder setCreateTime(Timestamp value)

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DatacenterConnector.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DatacenterConnector.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the connector was created (as an API call, not when it was actually installed).

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DatacenterConnector.Builder

setError(Status value)

public DatacenterConnector.Builder setError(Status value)

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
DatacenterConnector.Builder

setError(Status.Builder builderForValue)

public DatacenterConnector.Builder setError(Status.Builder builderForValue)

Output only. Provides details on the state of the Datacenter Connector in case of an error.

.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
DatacenterConnector.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DatacenterConnector.Builder setName(String value)

Output only. The connector's name.

string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DatacenterConnector.Builder setNameBytes(ByteString value)

Output only. The connector's name.

string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setRegistrationId(String value)

public DatacenterConnector.Builder setRegistrationId(String value)

Immutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified.

string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The registrationId to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setRegistrationIdBytes(ByteString value)

public DatacenterConnector.Builder setRegistrationIdBytes(ByteString value)

Immutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified.

string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for registrationId to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

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

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

setServiceAccount(String value)

public DatacenterConnector.Builder setServiceAccount(String value)

The service account to use in the connector when communicating with the cloud.

string service_account = 5;

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public DatacenterConnector.Builder setServiceAccountBytes(ByteString value)

The service account to use in the connector when communicating with the cloud.

string service_account = 5;

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setState(DatacenterConnector.State value)

public DatacenterConnector.Builder setState(DatacenterConnector.State value)

Output only. State of the DatacenterConnector, as determined by the health checks.

.google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDatacenterConnector.State

The state to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setStateTime(Timestamp value)

public DatacenterConnector.Builder setStateTime(Timestamp value)

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DatacenterConnector.Builder

setStateTime(Timestamp.Builder builderForValue)

public DatacenterConnector.Builder setStateTime(Timestamp.Builder builderForValue)

Output only. The time the state was last set.

.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DatacenterConnector.Builder

setStateValue(int value)

public DatacenterConnector.Builder setStateValue(int value)

Output only. State of the DatacenterConnector, as determined by the health checks.

.google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public DatacenterConnector.Builder setUpdateTime(Timestamp value)

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DatacenterConnector.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DatacenterConnector.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last time the connector was updated with an API call.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DatacenterConnector.Builder

setVersion(String value)

public DatacenterConnector.Builder setVersion(String value)

The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.

string version = 6;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public DatacenterConnector.Builder setVersionBytes(ByteString value)

The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified.

string version = 6;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
DatacenterConnector.Builder

This builder for chaining.