Class PreferenceSet.Builder (0.19.0)

public static final class PreferenceSet.Builder extends GeneratedMessageV3.Builder<PreferenceSet.Builder> implements PreferenceSetOrBuilder

The preferences that apply to all assets in a given context.

Protobuf type google.cloud.migrationcenter.v1.PreferenceSet

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PreferenceSet build()
Returns
TypeDescription
PreferenceSet

buildPartial()

public PreferenceSet buildPartial()
Returns
TypeDescription
PreferenceSet

clear()

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

clearCreateTime()

public PreferenceSet.Builder clearCreateTime()

Output only. The timestamp when the preference set was created.

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

Returns
TypeDescription
PreferenceSet.Builder

clearDescription()

public PreferenceSet.Builder clearDescription()

A description of the preference set.

string description = 5;

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

clearDisplayName()

public PreferenceSet.Builder clearDisplayName()

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public PreferenceSet.Builder clearName()

Output only. Name of the preference set.

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

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public PreferenceSet.Builder clearUpdateTime()

Output only. The timestamp when the preference set was last updated.

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

Returns
TypeDescription
PreferenceSet.Builder

clearVirtualMachinePreferences()

public PreferenceSet.Builder clearVirtualMachinePreferences()

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Returns
TypeDescription
PreferenceSet.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the preference set was created.

.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 timestamp when the preference set was created.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the preference set was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public PreferenceSet getDefaultInstanceForType()
Returns
TypeDescription
PreferenceSet

getDescription()

public String getDescription()

A description of the preference set.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description of the preference set.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Output only. Name of the preference set.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the preference set.

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

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the preference set was last updated.

.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 timestamp when the preference set was last updated.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the preference set was last updated.

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

Returns
TypeDescription
TimestampOrBuilder

getVirtualMachinePreferences()

public VirtualMachinePreferences getVirtualMachinePreferences()

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Returns
TypeDescription
VirtualMachinePreferences

The virtualMachinePreferences.

getVirtualMachinePreferencesBuilder()

public VirtualMachinePreferences.Builder getVirtualMachinePreferencesBuilder()

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Returns
TypeDescription
VirtualMachinePreferences.Builder

getVirtualMachinePreferencesOrBuilder()

public VirtualMachinePreferencesOrBuilder getVirtualMachinePreferencesOrBuilder()

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Returns
TypeDescription
VirtualMachinePreferencesOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the preference set was created.

.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 timestamp when the preference set was last updated.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVirtualMachinePreferences()

public boolean hasVirtualMachinePreferences()

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Returns
TypeDescription
boolean

Whether the virtualMachinePreferences 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 PreferenceSet.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the preference set was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PreferenceSet.Builder

mergeFrom(PreferenceSet other)

public PreferenceSet.Builder mergeFrom(PreferenceSet other)
Parameter
NameDescription
otherPreferenceSet
Returns
TypeDescription
PreferenceSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public PreferenceSet.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the preference set was last updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PreferenceSet.Builder

mergeVirtualMachinePreferences(VirtualMachinePreferences value)

public PreferenceSet.Builder mergeVirtualMachinePreferences(VirtualMachinePreferences value)

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Parameter
NameDescription
valueVirtualMachinePreferences
Returns
TypeDescription
PreferenceSet.Builder

setCreateTime(Timestamp value)

public PreferenceSet.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the preference set was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PreferenceSet.Builder

setCreateTime(Timestamp.Builder builderForValue)

public PreferenceSet.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the preference set was created.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
PreferenceSet.Builder

setDescription(String value)

public PreferenceSet.Builder setDescription(String value)

A description of the preference set.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PreferenceSet.Builder setDescriptionBytes(ByteString value)

A description of the preference set.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

setDisplayName(String value)

public PreferenceSet.Builder setDisplayName(String value)

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PreferenceSet.Builder setDisplayNameBytes(ByteString value)

User-friendly display name. Maximum length is 63 characters.

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public PreferenceSet.Builder setName(String value)

Output only. Name of the preference set.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PreferenceSet.Builder setNameBytes(ByteString value)

Output only. Name of the preference set.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
PreferenceSet.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public PreferenceSet.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the preference set was last updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PreferenceSet.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PreferenceSet.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the preference set was last updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
PreferenceSet.Builder

setVirtualMachinePreferences(VirtualMachinePreferences value)

public PreferenceSet.Builder setVirtualMachinePreferences(VirtualMachinePreferences value)

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Parameter
NameDescription
valueVirtualMachinePreferences
Returns
TypeDescription
PreferenceSet.Builder

setVirtualMachinePreferences(VirtualMachinePreferences.Builder builderForValue)

public PreferenceSet.Builder setVirtualMachinePreferences(VirtualMachinePreferences.Builder builderForValue)

A set of preferences that applies to all virtual machines in the context.

.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;

Parameter
NameDescription
builderForValueVirtualMachinePreferences.Builder
Returns
TypeDescription
PreferenceSet.Builder