Class Source.Builder (1.30.0)

public static final class Source.Builder extends GeneratedMessageV3.Builder<Source.Builder> implements SourceOrBuilder

Source message describes a specific vm migration Source resource. It contains the source environment information.

Protobuf type google.cloud.vmmigration.v1.Source

Implements

SourceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Source build()
Returns
TypeDescription
Source

buildPartial()

public Source buildPartial()
Returns
TypeDescription
Source

clear()

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

clearAws()

public Source.Builder clearAws()

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Returns
TypeDescription
Source.Builder

clearCreateTime()

public Source.Builder clearCreateTime()

Output only. The create time timestamp.

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

Returns
TypeDescription
Source.Builder

clearDescription()

public Source.Builder clearDescription()

User-provided description of the source.

string description = 6;

Returns
TypeDescription
Source.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public Source.Builder clearLabels()
Returns
TypeDescription
Source.Builder

clearName()

public Source.Builder clearName()

Output only. The Source name.

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

Returns
TypeDescription
Source.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceDetails()

public Source.Builder clearSourceDetails()
Returns
TypeDescription
Source.Builder

clearUpdateTime()

public Source.Builder clearUpdateTime()

Output only. The update time timestamp.

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

Returns
TypeDescription
Source.Builder

clearVmware()

public Source.Builder clearVmware()

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Returns
TypeDescription
Source.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

The labels of the source.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAws()

public AwsSourceDetails getAws()

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Returns
TypeDescription
AwsSourceDetails

The aws.

getAwsBuilder()

public AwsSourceDetails.Builder getAwsBuilder()

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Returns
TypeDescription
AwsSourceDetails.Builder

getAwsOrBuilder()

public AwsSourceDetailsOrBuilder getAwsOrBuilder()

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Returns
TypeDescription
AwsSourceDetailsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The create time timestamp.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create time timestamp.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create time timestamp.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Source getDefaultInstanceForType()
Returns
TypeDescription
Source

getDescription()

public String getDescription()

User-provided description of the source.

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description of the source.

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The labels of the source.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The labels of the source.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The labels of the source.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The labels of the source.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The Source name.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The Source name.

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

Returns
TypeDescription
ByteString

The bytes for name.

getSourceDetailsCase()

public Source.SourceDetailsCase getSourceDetailsCase()
Returns
TypeDescription
Source.SourceDetailsCase

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update time timestamp.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update time timestamp.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time timestamp.

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

Returns
TypeDescription
TimestampOrBuilder

getVmware()

public VmwareSourceDetails getVmware()

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Returns
TypeDescription
VmwareSourceDetails

The vmware.

getVmwareBuilder()

public VmwareSourceDetails.Builder getVmwareBuilder()

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Returns
TypeDescription
VmwareSourceDetails.Builder

getVmwareOrBuilder()

public VmwareSourceDetailsOrBuilder getVmwareOrBuilder()

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Returns
TypeDescription
VmwareSourceDetailsOrBuilder

hasAws()

public boolean hasAws()

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Returns
TypeDescription
boolean

Whether the aws field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The create time timestamp.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update time timestamp.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVmware()

public boolean hasVmware()

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Returns
TypeDescription
boolean

Whether the vmware field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAws(AwsSourceDetails value)

public Source.Builder mergeAws(AwsSourceDetails value)

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Parameter
NameDescription
valueAwsSourceDetails
Returns
TypeDescription
Source.Builder

mergeCreateTime(Timestamp value)

public Source.Builder mergeCreateTime(Timestamp value)

Output only. The create time timestamp.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Source.Builder

mergeFrom(Source other)

public Source.Builder mergeFrom(Source other)
Parameter
NameDescription
otherSource
Returns
TypeDescription
Source.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Source.Builder mergeUpdateTime(Timestamp value)

Output only. The update time timestamp.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Source.Builder

mergeVmware(VmwareSourceDetails value)

public Source.Builder mergeVmware(VmwareSourceDetails value)

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Parameter
NameDescription
valueVmwareSourceDetails
Returns
TypeDescription
Source.Builder

putAllLabels(Map<String,String> values)

public Source.Builder putAllLabels(Map<String,String> values)

The labels of the source.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Source.Builder

putLabels(String key, String value)

public Source.Builder putLabels(String key, String value)

The labels of the source.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Source.Builder

removeLabels(String key)

public Source.Builder removeLabels(String key)

The labels of the source.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Source.Builder

setAws(AwsSourceDetails value)

public Source.Builder setAws(AwsSourceDetails value)

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Parameter
NameDescription
valueAwsSourceDetails
Returns
TypeDescription
Source.Builder

setAws(AwsSourceDetails.Builder builderForValue)

public Source.Builder setAws(AwsSourceDetails.Builder builderForValue)

AWS type source details.

.google.cloud.vmmigration.v1.AwsSourceDetails aws = 12;

Parameter
NameDescription
builderForValueAwsSourceDetails.Builder
Returns
TypeDescription
Source.Builder

setCreateTime(Timestamp value)

public Source.Builder setCreateTime(Timestamp value)

Output only. The create time timestamp.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Source.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Source.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create time timestamp.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Source.Builder

setDescription(String value)

public Source.Builder setDescription(String value)

User-provided description of the source.

string description = 6;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Source.Builder setDescriptionBytes(ByteString value)

User-provided description of the source.

string description = 6;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Source.Builder setName(String value)

Output only. The Source name.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Source.Builder setNameBytes(ByteString value)

Output only. The Source name.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Source.Builder setUpdateTime(Timestamp value)

Output only. The update time timestamp.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Source.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Source.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update time timestamp.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Source.Builder

setVmware(VmwareSourceDetails value)

public Source.Builder setVmware(VmwareSourceDetails value)

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Parameter
NameDescription
valueVmwareSourceDetails
Returns
TypeDescription
Source.Builder

setVmware(VmwareSourceDetails.Builder builderForValue)

public Source.Builder setVmware(VmwareSourceDetails.Builder builderForValue)

Vmware type source details.

.google.cloud.vmmigration.v1.VmwareSourceDetails vmware = 10;

Parameter
NameDescription
builderForValueVmwareSourceDetails.Builder
Returns
TypeDescription
Source.Builder