Class GatewayAdvertisedRoute.Builder

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

public static final class GatewayAdvertisedRoute.Builder extends com.google.protobuf.GeneratedMessage.Builder<GatewayAdvertisedRoute.Builder> implements GatewayAdvertisedRouteOrBuilder
 A gateway advertised route is a route that a gateway spoke advertises
 somewhere.
 
Protobuf type google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute
  • 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<GatewayAdvertisedRoute.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GatewayAdvertisedRoute.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<GatewayAdvertisedRoute.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<GatewayAdvertisedRoute.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public String getName()
       Identifier. The name of the gateway advertised route. Route names must be
       unique and use the following form:
       `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the gateway advertised route. Route names must be
       unique and use the following form:
       `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GatewayAdvertisedRoute.Builder setName(String value)
       Identifier. The name of the gateway advertised route. Route names must be
       unique and use the following form:
       `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GatewayAdvertisedRoute.Builder clearName()
       Identifier. The name of the gateway advertised route. Route names must be
       unique and use the following form:
       `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public GatewayAdvertisedRoute.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the gateway advertised route. Route names must be
       unique and use the following form:
       `projects/{project_number}/locations/{region}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time the gateway advertised route was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

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

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

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

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

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

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

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

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

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

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

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

      public int getLabelsCount()
      Description copied from interface: GatewayAdvertisedRouteOrBuilder
       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 GatewayAdvertisedRouteOrBuilder
    • 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 GatewayAdvertisedRouteOrBuilder
    • getLabels

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

      public GatewayAdvertisedRoute.Builder clearLabels()
    • removeLabels

      public GatewayAdvertisedRoute.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 GatewayAdvertisedRoute.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 GatewayAdvertisedRoute.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 gateway advertised route.
       
      string description = 5;
      Specified by:
      getDescription in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

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

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

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

      public GatewayAdvertisedRoute.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of the gateway advertised route.
       
      string description = 5;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getUniqueId

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

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

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

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

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

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

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

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

      public String getIpRange()
       Immutable. This route's advertised IP address range. Must be a valid
       CIDR-formatted prefix. If an IP address is provided without a subnet mask,
       it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
       IPv6,
       `/128`.
       
      string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getIpRange in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The ipRange.
    • getIpRangeBytes

      public com.google.protobuf.ByteString getIpRangeBytes()
       Immutable. This route's advertised IP address range. Must be a valid
       CIDR-formatted prefix. If an IP address is provided without a subnet mask,
       it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
       IPv6,
       `/128`.
       
      string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getIpRangeBytes in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The bytes for ipRange.
    • setIpRange

      public GatewayAdvertisedRoute.Builder setIpRange(String value)
       Immutable. This route's advertised IP address range. Must be a valid
       CIDR-formatted prefix. If an IP address is provided without a subnet mask,
       it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
       IPv6,
       `/128`.
       
      string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The ipRange to set.
      Returns:
      This builder for chaining.
    • clearIpRange

      public GatewayAdvertisedRoute.Builder clearIpRange()
       Immutable. This route's advertised IP address range. Must be a valid
       CIDR-formatted prefix. If an IP address is provided without a subnet mask,
       it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
       IPv6,
       `/128`.
       
      string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setIpRangeBytes

      public GatewayAdvertisedRoute.Builder setIpRangeBytes(com.google.protobuf.ByteString value)
       Immutable. This route's advertised IP address range. Must be a valid
       CIDR-formatted prefix. If an IP address is provided without a subnet mask,
       it is interpreted as, for IPv4, a `/32` singular IP address range, and, for
       IPv6,
       `/128`.
       
      string ip_range = 8 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for ipRange to set.
      Returns:
      This builder for chaining.
    • hasPriority

      public boolean hasPriority()
       Optional. The priority of this advertised route. You can choose a value
       from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
       priority of `100` to the ranges.
       
      optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPriority in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      Whether the priority field is set.
    • getPriority

      public int getPriority()
       Optional. The priority of this advertised route. You can choose a value
       from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
       priority of `100` to the ranges.
       
      optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPriority in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The priority.
    • setPriority

      public GatewayAdvertisedRoute.Builder setPriority(int value)
       Optional. The priority of this advertised route. You can choose a value
       from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
       priority of `100` to the ranges.
       
      optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      public GatewayAdvertisedRoute.Builder clearPriority()
       Optional. The priority of this advertised route. You can choose a value
       from `0` to `65335`. If you don't provide a value, Google Cloud assigns a
       priority of `100` to the ranges.
       
      optional int32 priority = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRecipientValue

      public int getRecipientValue()
       Optional. The recipient of this advertised route.
       
      .google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRecipientValue in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The enum numeric value on the wire for recipient.
    • setRecipientValue

      public GatewayAdvertisedRoute.Builder setRecipientValue(int value)
       Optional. The recipient of this advertised route.
       
      .google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for recipient to set.
      Returns:
      This builder for chaining.
    • getRecipient

      public GatewayAdvertisedRoute.Recipient getRecipient()
       Optional. The recipient of this advertised route.
       
      .google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRecipient in interface GatewayAdvertisedRouteOrBuilder
      Returns:
      The recipient.
    • setRecipient

       Optional. The recipient of this advertised route.
       
      .google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The recipient to set.
      Returns:
      This builder for chaining.
    • clearRecipient

      public GatewayAdvertisedRoute.Builder clearRecipient()
       Optional. The recipient of this advertised route.
       
      .google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute.Recipient recipient = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.