Class GatewayAdvertisedRoute

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute
All Implemented Interfaces:
GatewayAdvertisedRouteOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class GatewayAdvertisedRoute extends com.google.protobuf.GeneratedMessage implements GatewayAdvertisedRouteOrBuilder
 A gateway advertised route is a route that a gateway spoke advertises
 somewhere.
 
Protobuf type google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute
See Also:
  • Field Details

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

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GatewayAdvertisedRoute parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GatewayAdvertisedRoute parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GatewayAdvertisedRoute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GatewayAdvertisedRoute.Builder newBuilder()
    • newBuilder

      public static GatewayAdvertisedRoute.Builder newBuilder(GatewayAdvertisedRoute prototype)
    • toBuilder

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

      protected GatewayAdvertisedRoute.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GatewayAdvertisedRoute getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GatewayAdvertisedRoute> parser()
    • getParserForType

      public com.google.protobuf.Parser<GatewayAdvertisedRoute> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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