Class RouteTable.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouteTable.Builder>
com.google.cloud.networkconnectivity.v1beta.RouteTable.Builder
All Implemented Interfaces:
RouteTableOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RouteTable

public static final class RouteTable.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouteTable.Builder> implements RouteTableOrBuilder
Protobuf type google.cloud.networkconnectivity.v1beta.RouteTable
  • 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<RouteTable.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public RouteTable.Builder mergeFrom(RouteTable other)
    • isInitialized

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

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

      public String getName()
       Immutable. The name of the route table. Route table names must be unique.
       They use the following form:
       `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface RouteTableOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

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

      public RouteTable.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. The name of the route table. Route table names must be unique.
       They use the following form:
       `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_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 route table was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface RouteTableOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

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

      public RouteTable.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route table was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public RouteTable.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the route table was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public RouteTable.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route table was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

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

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

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

      public RouteTable.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route table was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public RouteTable.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the route table was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public RouteTable.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the route table was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

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

      public int getLabelsCount()
      Description copied from interface: RouteTableOrBuilder
       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;
      Specified by:
      getLabelsCount in interface RouteTableOrBuilder
    • 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;
      Specified by:
      containsLabels in interface RouteTableOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface RouteTableOrBuilder
    • 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;
      Specified by:
      getLabelsMap in interface RouteTableOrBuilder
    • 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;
      Specified by:
      getLabelsOrDefault in interface RouteTableOrBuilder
    • 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;
      Specified by:
      getLabelsOrThrow in interface RouteTableOrBuilder
    • clearLabels

      public RouteTable.Builder clearLabels()
    • removeLabels

      public RouteTable.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;
    • getMutableLabels

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

      public RouteTable.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;
    • putAllLabels

      public RouteTable.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;
    • getDescription

      public String getDescription()
       An optional description of the route table.
       
      string description = 5;
      Specified by:
      getDescription in interface RouteTableOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of the route table.
       
      string description = 5;
      Specified by:
      getDescriptionBytes in interface RouteTableOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public RouteTable.Builder setDescription(String value)
       An optional description of the route table.
       
      string description = 5;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public RouteTable.Builder clearDescription()
       An optional description of the route table.
       
      string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public RouteTable.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of the route table.
       
      string description = 5;
      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 route table. This value is
       unique across all route table resources. If a route table is deleted and
       another with the same name is created, the new route table is assigned
       a different `uid`.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface RouteTableOrBuilder
      Returns:
      The uid.
    • getUidBytes

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

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

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

      public RouteTable.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. The Google-generated UUID for the route table. This value is
       unique across all route table resources. If a route table is deleted and
       another with the same name is created, the new route table is assigned
       a different `uid`.
       
      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 route table.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface RouteTableOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public RouteTable.Builder setStateValue(int value)
       Output only. The current lifecycle state of this route table.
       
      .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 route table.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface RouteTableOrBuilder
      Returns:
      The state.
    • setState

      public RouteTable.Builder setState(State value)
       Output only. The current lifecycle state of this route table.
       
      .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 RouteTable.Builder clearState()
       Output only. The current lifecycle state of this route table.
       
      .google.cloud.networkconnectivity.v1beta.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.