Class TargetProject.Builder (1.35.0)

public static final class TargetProject.Builder extends GeneratedMessageV3.Builder<TargetProject.Builder> implements TargetProjectOrBuilder

TargetProject message represents a target Compute Engine project for a migration or a clone.

Protobuf type google.cloud.vmmigration.v1.TargetProject

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetProject build()
Returns
TypeDescription
TargetProject

buildPartial()

public TargetProject buildPartial()
Returns
TypeDescription
TargetProject

clear()

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

clearCreateTime()

public TargetProject.Builder clearCreateTime()

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Returns
TypeDescription
TargetProject.Builder

clearDescription()

public TargetProject.Builder clearDescription()

The target project's description.

string description = 3;

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public TargetProject.Builder clearName()

Output only. The name of the target project.

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

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public TargetProject.Builder clearProject()

The target project ID (number) or project name.

string project = 2;

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

clearUpdateTime()

public TargetProject.Builder clearUpdateTime()

Output only. The last time the target project resource was updated.

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

Returns
TypeDescription
TargetProject.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public TargetProject getDefaultInstanceForType()
Returns
TypeDescription
TargetProject

getDescription()

public String getDescription()

The target project's description.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The target project's description.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. The name of the target project.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the target project.

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

Returns
TypeDescription
ByteString

The bytes for name.

getProject()

public String getProject()

The target project ID (number) or project name.

string project = 2;

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The target project ID (number) or project name.

string project = 2;

Returns
TypeDescription
ByteString

The bytes for project.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last time the target project resource was updated.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last time the target project resource was updated.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last time the target project resource was updated.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last time the target project resource was updated.

.google.protobuf.Timestamp update_time = 5 [(.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 TargetProject.Builder mergeCreateTime(Timestamp value)

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetProject.Builder

mergeFrom(TargetProject other)

public TargetProject.Builder mergeFrom(TargetProject other)
Parameter
NameDescription
otherTargetProject
Returns
TypeDescription
TargetProject.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public TargetProject.Builder mergeUpdateTime(Timestamp value)

Output only. The last time the target project resource was updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetProject.Builder

setCreateTime(Timestamp value)

public TargetProject.Builder setCreateTime(Timestamp value)

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetProject.Builder

setCreateTime(Timestamp.Builder builderForValue)

public TargetProject.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created).

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TargetProject.Builder

setDescription(String value)

public TargetProject.Builder setDescription(String value)

The target project's description.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public TargetProject.Builder setDescriptionBytes(ByteString value)

The target project's description.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public TargetProject.Builder setName(String value)

Output only. The name of the target project.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TargetProject.Builder setNameBytes(ByteString value)

Output only. The name of the target project.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

setProject(String value)

public TargetProject.Builder setProject(String value)

The target project ID (number) or project name.

string project = 2;

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public TargetProject.Builder setProjectBytes(ByteString value)

The target project ID (number) or project name.

string project = 2;

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
TargetProject.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public TargetProject.Builder setUpdateTime(Timestamp value)

Output only. The last time the target project resource was updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetProject.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public TargetProject.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last time the target project resource was updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TargetProject.Builder