Class Group.Builder (1.23.0)

public static final class Group.Builder extends GeneratedMessageV3.Builder<Group.Builder> implements GroupOrBuilder

Describes message for 'Group' resource. The Group is a collections of several MigratingVms.

Protobuf type google.cloud.vmmigration.v1.Group

Implements

GroupOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Group build()
Returns
TypeDescription
Group

buildPartial()

public Group buildPartial()
Returns
TypeDescription
Group

clear()

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

clearCreateTime()

public Group.Builder clearCreateTime()

Output only. The create time timestamp.

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

Returns
TypeDescription
Group.Builder

clearDescription()

public Group.Builder clearDescription()

User-provided description of the group.

string description = 4;

Returns
TypeDescription
Group.Builder

This builder for chaining.

clearDisplayName()

public Group.Builder clearDisplayName()

Display name is a user defined name for this group which can be updated.

string display_name = 5;

Returns
TypeDescription
Group.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Group.Builder clearName()

Output only. The Group name.

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

Returns
TypeDescription
Group.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public Group.Builder clearUpdateTime()

Output only. The update time timestamp.

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

Returns
TypeDescription
Group.Builder

clone()

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

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 Group getDefaultInstanceForType()
Returns
TypeDescription
Group

getDescription()

public String getDescription()

User-provided description of the group.

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description of the group.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Display name is a user defined name for this group which can be updated.

string display_name = 5;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name is a user defined name for this group which can be updated.

string display_name = 5;

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Output only. The Group name.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The Group name.

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

Returns
TypeDescription
ByteString

The bytes for name.

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Group.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
Group.Builder

mergeFrom(Group other)

public Group.Builder mergeFrom(Group other)
Parameter
NameDescription
otherGroup
Returns
TypeDescription
Group.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Group.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
Group.Builder

setCreateTime(Timestamp value)

public Group.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
Group.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Group.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
Group.Builder

setDescription(String value)

public Group.Builder setDescription(String value)

User-provided description of the group.

string description = 4;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Group.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Group.Builder setDescriptionBytes(ByteString value)

User-provided description of the group.

string description = 4;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Group.Builder

This builder for chaining.

setDisplayName(String value)

public Group.Builder setDisplayName(String value)

Display name is a user defined name for this group which can be updated.

string display_name = 5;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Group.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Group.Builder setDisplayNameBytes(ByteString value)

Display name is a user defined name for this group which can be updated.

string display_name = 5;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Group.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Group.Builder setName(String value)

Output only. The Group name.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Group.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Group.Builder setNameBytes(ByteString value)

Output only. The Group name.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Group.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Group.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
Group.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Group.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
Group.Builder