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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PreferenceSet.BuilderImplements
PreferenceSetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PreferenceSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
build()
public PreferenceSet build()
Returns | |
---|---|
Type | Description |
PreferenceSet |
buildPartial()
public PreferenceSet buildPartial()
Returns | |
---|---|
Type | Description |
PreferenceSet |
clear()
public PreferenceSet.Builder clear()
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
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 | |
---|---|
Type | Description |
PreferenceSet.Builder |
clearDescription()
public PreferenceSet.Builder clearDescription()
A description of the preference set.
string description = 5;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
PreferenceSet.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PreferenceSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
clearName()
public PreferenceSet.Builder clearName()
Output only. Name of the preference set.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PreferenceSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
PreferenceSet.Builder |
clone()
public PreferenceSet.Builder clone()
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public PreferenceSet getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PreferenceSet |
getDescription()
public String getDescription()
A description of the preference set.
string description = 5;
Returns | |
---|---|
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
A description of the preference set.
string description = 5;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
User-friendly display name. Maximum length is 63 characters.
string display_name = 4;
Returns | |
---|---|
Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
User-friendly display name. Maximum length is 63 characters.
string display_name = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Name of the preference set.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the virtualMachinePreferences field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
mergeFrom(PreferenceSet other)
public PreferenceSet.Builder mergeFrom(PreferenceSet other)
Parameter | |
---|---|
Name | Description |
other |
PreferenceSet |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PreferenceSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PreferenceSet.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PreferenceSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
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 | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
VirtualMachinePreferences |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
setDescription(String value)
public PreferenceSet.Builder setDescription(String value)
A description of the preference set.
string description = 5;
Parameter | |
---|---|
Name | Description |
value |
String The description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The displayName to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PreferenceSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
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 | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PreferenceSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |
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 | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
VirtualMachinePreferences |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
VirtualMachinePreferences.Builder |
Returns | |
---|---|
Type | Description |
PreferenceSet.Builder |