Class PreferenceSet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
com.google.cloud.migrationcenter.v1.PreferenceSet.Builder
- All Implemented Interfaces:
PreferenceSetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PreferenceSet
public static final class PreferenceSet.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
implements PreferenceSetOrBuilder
The preferences that apply to all assets in a given context.Protobuf type
google.cloud.migrationcenter.v1.PreferenceSet-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.A description of the preference set.User-friendly display name.Output only.Output only.A set of preferences that applies to all virtual machines in the context.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.A description of the preference set.com.google.protobuf.ByteStringA description of the preference set.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUser-friendly display name.com.google.protobuf.ByteStringUser-friendly display name.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.A set of preferences that applies to all virtual machines in the context.A set of preferences that applies to all virtual machines in the context.A set of preferences that applies to all virtual machines in the context.booleanOutput only.booleanOutput only.booleanA set of preferences that applies to all virtual machines in the context.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(PreferenceSet other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.A set of preferences that applies to all virtual machines in the context.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) A description of the preference set.setDescriptionBytes(com.google.protobuf.ByteString value) A description of the preference set.setDisplayName(String value) User-friendly display name.setDisplayNameBytes(com.google.protobuf.ByteString value) User-friendly display name.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.A set of preferences that applies to all virtual machines in the context.setVirtualMachinePreferences(VirtualMachinePreferences.Builder builderForValue) A set of preferences that applies to all virtual machines in the context.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PreferenceSet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
-
mergeFrom
public PreferenceSet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PreferenceSet.Builder>- Throws:
IOException
-
getName
Output only. Name of the preference set.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfacePreferenceSetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Name of the preference set.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfacePreferenceSetOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Name of the preference set.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Name of the preference set.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Name of the preference set.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfacePreferenceSetOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The timestamp when the preference set was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfacePreferenceSetOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The timestamp when the preference set was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The timestamp when the preference set was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The timestamp when the preference set was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The timestamp when the preference set was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.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]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when the preference set was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfacePreferenceSetOrBuilder
-
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];- Specified by:
hasUpdateTimein interfacePreferenceSetOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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];- Specified by:
getUpdateTimein interfacePreferenceSetOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The timestamp when the preference set was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The timestamp when the preference set was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The timestamp when the preference set was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The timestamp when the preference set was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.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]; -
getUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateTimeOrBuilderin interfacePreferenceSetOrBuilder
-
getDisplayName
User-friendly display name. Maximum length is 63 characters.
string display_name = 4;- Specified by:
getDisplayNamein interfacePreferenceSetOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()User-friendly display name. Maximum length is 63 characters.
string display_name = 4;- Specified by:
getDisplayNameBytesin interfacePreferenceSetOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
User-friendly display name. Maximum length is 63 characters.
string display_name = 4;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
User-friendly display name. Maximum length is 63 characters.
string display_name = 4;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
User-friendly display name. Maximum length is 63 characters.
string display_name = 4;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
A description of the preference set.
string description = 5;- Specified by:
getDescriptionin interfacePreferenceSetOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A description of the preference set.
string description = 5;- Specified by:
getDescriptionBytesin interfacePreferenceSetOrBuilder- Returns:
- The bytes for description.
-
setDescription
A description of the preference set.
string description = 5;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A description of the preference set.
string description = 5;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A description of the preference set.
string description = 5;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasVirtualMachinePreferencesin interfacePreferenceSetOrBuilder- Returns:
- Whether the virtualMachinePreferences field is set.
-
getVirtualMachinePreferences
A set of preferences that applies to all virtual machines in the context.
.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;- Specified by:
getVirtualMachinePreferencesin interfacePreferenceSetOrBuilder- Returns:
- The virtualMachinePreferences.
-
setVirtualMachinePreferences
A set of preferences that applies to all virtual machines in the context.
.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6; -
setVirtualMachinePreferences
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; -
mergeVirtualMachinePreferences
A set of preferences that applies to all virtual machines in the context.
.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6; -
clearVirtualMachinePreferences
A set of preferences that applies to all virtual machines in the context.
.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6; -
getVirtualMachinePreferencesBuilder
A set of preferences that applies to all virtual machines in the context.
.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6; -
getVirtualMachinePreferencesOrBuilder
A set of preferences that applies to all virtual machines in the context.
.google.cloud.migrationcenter.v1.VirtualMachinePreferences virtual_machine_preferences = 6;- Specified by:
getVirtualMachinePreferencesOrBuilderin interfacePreferenceSetOrBuilder
-