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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
    • clear

      public PreferenceSet.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PreferenceSet.Builder>
    • getDefaultInstanceForType

      public PreferenceSet getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PreferenceSet build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PreferenceSet buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PreferenceSet.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PreferenceSet.Builder>
    • mergeFrom

      public PreferenceSet.Builder mergeFrom(PreferenceSet other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PreferenceSet.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Name of the preference set.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface PreferenceSetOrBuilder
      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:
      getNameBytes in interface PreferenceSetOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PreferenceSet.Builder setName(String value)
       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

      public PreferenceSet.Builder clearName()
       Output only. Name of the preference set.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public PreferenceSet.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasCreateTime in interface PreferenceSetOrBuilder
      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:
      getCreateTime in interface PreferenceSetOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public PreferenceSet.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the preference set was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public PreferenceSet.Builder setCreateTime(com.google.protobuf.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];
    • mergeCreateTime

      public PreferenceSet.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the preference set was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface PreferenceSetOrBuilder
    • 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:
      hasUpdateTime in interface PreferenceSetOrBuilder
      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:
      getUpdateTime in interface PreferenceSetOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PreferenceSet.Builder setUpdateTime(com.google.protobuf.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];
    • setUpdateTime

      public PreferenceSet.Builder setUpdateTime(com.google.protobuf.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];
    • mergeUpdateTime

      public PreferenceSet.Builder mergeUpdateTime(com.google.protobuf.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];
    • 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];
    • 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:
      getUpdateTimeOrBuilder in interface PreferenceSetOrBuilder
    • getDisplayName

      public String getDisplayName()
       User-friendly display name. Maximum length is 63 characters.
       
      string display_name = 4;
      Specified by:
      getDisplayName in interface PreferenceSetOrBuilder
      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:
      getDisplayNameBytes in interface PreferenceSetOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public PreferenceSet.Builder setDisplayName(String value)
       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

      public PreferenceSet.Builder clearDisplayName()
       User-friendly display name. Maximum length is 63 characters.
       
      string display_name = 4;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public PreferenceSet.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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

      public String getDescription()
       A description of the preference set.
       
      string description = 5;
      Specified by:
      getDescription in interface PreferenceSetOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A description of the preference set.
       
      string description = 5;
      Specified by:
      getDescriptionBytes in interface PreferenceSetOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public PreferenceSet.Builder setDescription(String value)
       A description of the preference set.
       
      string description = 5;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public PreferenceSet.Builder clearDescription()
       A description of the preference set.
       
      string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public PreferenceSet.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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:
      hasVirtualMachinePreferences in interface PreferenceSetOrBuilder
      Returns:
      Whether the virtualMachinePreferences field is set.
    • 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;
      Specified by:
      getVirtualMachinePreferences in interface PreferenceSetOrBuilder
      Returns:
      The virtualMachinePreferences.
    • setVirtualMachinePreferences

      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;
    • 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

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getVirtualMachinePreferencesOrBuilder in interface PreferenceSetOrBuilder