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.networkconnectivity.v1beta.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 group represents a subset of spokes attached to a hub.
 
Protobuf type google.cloud.networkconnectivity.v1beta.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()
       Immutable. The name of the group. Group names must be unique. They
       use the following form:
       `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface GroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. The name of the group. Group names must be unique. They
       use the following form:
       `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface GroupOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Group.Builder setName(String value)
       Immutable. The name of the group. Group names must be unique. They
       use the following form:
       `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Group.Builder clearName()
       Immutable. The name of the group. Group names must be unique. They
       use the following form:
       `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Group.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. The name of the group. Group names must be unique. They
       use the following form:
       `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time 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 time 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 time 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 time 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 time the group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Group.Builder clearCreateTime()
       Output only. The time 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 time 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 time 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 time 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 time 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 time 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 time 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 time 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 time 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 time 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 time 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
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface GroupOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      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()
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface GroupOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface GroupOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface GroupOrBuilder
    • clearLabels

      public Group.Builder clearLabels()
    • removeLabels

      public Group.Builder removeLabels(String key)
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public Group.Builder putLabels(String key, String value)
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Group.Builder putAllLabels(Map<String,String> values)
       Optional. Labels in key-value pair format. For more information about
       labels, see [Requirements for
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getDescription

      public String getDescription()
       Optional. The description of the group.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface GroupOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of the group.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface GroupOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Group.Builder setDescription(String value)
       Optional. The description of the group.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Group.Builder clearDescription()
       Optional. The description of the group.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Group.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. The description of the group.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. The Google-generated UUID for the group. This value is unique
       across all group resources. If a group is deleted and
       another with the same name is created, the new route table is assigned
       a different unique_id.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface GroupOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. The Google-generated UUID for the group. This value is unique
       across all group resources. If a group is deleted and
       another with the same name is created, the new route table is assigned
       a different unique_id.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface GroupOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Group.Builder setUid(String value)
       Output only. The Google-generated UUID for the group. This value is unique
       across all group resources. If a group is deleted and
       another with the same name is created, the new route table is assigned
       a different unique_id.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Group.Builder clearUid()
       Output only. The Google-generated UUID for the group. This value is unique
       across all group resources. If a group is deleted and
       another with the same name is created, the new route table is assigned
       a different unique_id.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public Group.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. The Google-generated UUID for the group. This value is unique
       across all group resources. If a group is deleted and
       another with the same name is created, the new route table is assigned
       a different unique_id.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The current lifecycle state of this group.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface GroupOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Group.Builder setStateValue(int value)
       Output only. The current lifecycle state of this group.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public State getState()
       Output only. The current lifecycle state of this group.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface GroupOrBuilder
      Returns:
      The state.
    • setState

      public Group.Builder setState(State value)
       Output only. The current lifecycle state of this group.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Group.Builder clearState()
       Output only. The current lifecycle state of this group.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasAutoAccept

      public boolean hasAutoAccept()
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAutoAccept in interface GroupOrBuilder
      Returns:
      Whether the autoAccept field is set.
    • getAutoAccept

      public AutoAccept getAutoAccept()
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoAccept in interface GroupOrBuilder
      Returns:
      The autoAccept.
    • setAutoAccept

      public Group.Builder setAutoAccept(AutoAccept value)
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setAutoAccept

      public Group.Builder setAutoAccept(AutoAccept.Builder builderForValue)
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAutoAccept

      public Group.Builder mergeAutoAccept(AutoAccept value)
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearAutoAccept

      public Group.Builder clearAutoAccept()
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getAutoAcceptBuilder

      public AutoAccept.Builder getAutoAcceptBuilder()
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getAutoAcceptOrBuilder

      public AutoAcceptOrBuilder getAutoAcceptOrBuilder()
       Optional. The auto-accept setting for this group.
       
      .google.cloud.networkconnectivity.v1beta.AutoAccept auto_accept = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAutoAcceptOrBuilder in interface GroupOrBuilder
    • getRouteTable

      public String getRouteTable()
       Output only. The name of the route table that corresponds to this group.
       They use the following form:
       `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
       
      string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getRouteTable in interface GroupOrBuilder
      Returns:
      The routeTable.
    • getRouteTableBytes

      public com.google.protobuf.ByteString getRouteTableBytes()
       Output only. The name of the route table that corresponds to this group.
       They use the following form:
       `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
       
      string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getRouteTableBytes in interface GroupOrBuilder
      Returns:
      The bytes for routeTable.
    • setRouteTable

      public Group.Builder setRouteTable(String value)
       Output only. The name of the route table that corresponds to this group.
       They use the following form:
       `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
       
      string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The routeTable to set.
      Returns:
      This builder for chaining.
    • clearRouteTable

      public Group.Builder clearRouteTable()
       Output only. The name of the route table that corresponds to this group.
       They use the following form:
       `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
       
      string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRouteTableBytes

      public Group.Builder setRouteTableBytes(com.google.protobuf.ByteString value)
       Output only. The name of the route table that corresponds to this group.
       They use the following form:
       `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`
       
      string route_table = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for routeTable to set.
      Returns:
      This builder for chaining.