Class Group.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
com.google.cloud.migrationcenter.v1.Group.Builder
All Implemented Interfaces:
GroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Group

public static final class Group.Builder extends com.google.protobuf.GeneratedMessage.Builder<Group.Builder> implements GroupOrBuilder
 A resource that represents an asset group.
 The purpose of an asset group is to bundle a set of assets that have
 something in common, while allowing users to add annotations to the group.
 An asset can belong to multiple groups.
 
Protobuf type google.cloud.migrationcenter.v1.Group
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public Group.Builder mergeFrom(Group other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
    • mergeFrom

      public Group.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<Group.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The name of the group.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface GroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the group.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface GroupOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Group.Builder setName(String value)
       Output only. The name of the group.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

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

      public Group.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the group.
       
      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 group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface GroupOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface GroupOrBuilder
      Returns:
      The createTime.
    • setCreateTime

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

      public Group.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Group.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Group.Builder clearCreateTime()
       Output only. The timestamp when the group 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 group 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 group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface GroupOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface GroupOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface GroupOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Group.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Group.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Group.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Group.Builder clearUpdateTime()
       Output only. The timestamp when the group 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 group 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 group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface GroupOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: GroupOrBuilder
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface GroupOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface GroupOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface GroupOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface GroupOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface GroupOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface GroupOrBuilder
    • clearLabels

      public Group.Builder clearLabels()
    • removeLabels

      public Group.Builder removeLabels(String key)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Group.Builder putLabels(String key, String value)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • putAllLabels

      public Group.Builder putAllLabels(Map<String,String> values)
       Labels as key value pairs.
       
      map<string, string> labels = 4;
    • getDisplayName

      public String getDisplayName()
       User-friendly display name.
       
      string display_name = 5;
      Specified by:
      getDisplayName in interface GroupOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       User-friendly display name.
       
      string display_name = 5;
      Specified by:
      getDisplayNameBytes in interface GroupOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Group.Builder setDisplayName(String value)
       User-friendly display name.
       
      string display_name = 5;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Group.Builder clearDisplayName()
       User-friendly display name.
       
      string display_name = 5;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Group.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       User-friendly display name.
       
      string display_name = 5;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The description of the resource.
       
      string description = 6;
      Specified by:
      getDescription in interface GroupOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the resource.
       
      string description = 6;
      Specified by:
      getDescriptionBytes in interface GroupOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Group.Builder setDescription(String value)
       The description of the resource.
       
      string description = 6;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Group.Builder clearDescription()
       The description of the resource.
       
      string description = 6;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Group.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The description of the resource.
       
      string description = 6;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.