Class TcpRoute

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.TcpRoute
All Implemented Interfaces:
TcpRouteOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class TcpRoute extends com.google.protobuf.GeneratedMessage implements TcpRouteOrBuilder
 TcpRoute is the resource defining how TCP traffic should be routed by a
 Mesh/Gateway resource.
 
Protobuf type google.cloud.networkservices.v1.TcpRoute
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. Name of the TcpRoute resource. It matches pattern
       `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface TcpRouteOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the TcpRoute resource. It matches pattern
       `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface TcpRouteOrBuilder
      Returns:
      The bytes for name.
    • getSelfLink

      public String getSelfLink()
       Output only. Server-defined URL of this resource
       
      string self_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLink in interface TcpRouteOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. Server-defined URL of this resource
       
      string self_link = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLinkBytes in interface TcpRouteOrBuilder
      Returns:
      The bytes for selfLink.
    • hasCreateTime

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

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

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface TcpRouteOrBuilder
    • hasUpdateTime

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

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

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface TcpRouteOrBuilder
    • getDescription

      public String getDescription()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface TcpRouteOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface TcpRouteOrBuilder
      Returns:
      The bytes for description.
    • getRulesList

      public List<TcpRoute.RouteRule> getRulesList()
       Required. Rules that define how traffic is routed and handled. At least one
       RouteRule must be supplied. If there are multiple rules then the action
       taken will be the first rule to match.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesList in interface TcpRouteOrBuilder
    • getRulesOrBuilderList

      public List<? extends TcpRoute.RouteRuleOrBuilder> getRulesOrBuilderList()
       Required. Rules that define how traffic is routed and handled. At least one
       RouteRule must be supplied. If there are multiple rules then the action
       taken will be the first rule to match.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilderList in interface TcpRouteOrBuilder
    • getRulesCount

      public int getRulesCount()
       Required. Rules that define how traffic is routed and handled. At least one
       RouteRule must be supplied. If there are multiple rules then the action
       taken will be the first rule to match.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesCount in interface TcpRouteOrBuilder
    • getRules

      public TcpRoute.RouteRule getRules(int index)
       Required. Rules that define how traffic is routed and handled. At least one
       RouteRule must be supplied. If there are multiple rules then the action
       taken will be the first rule to match.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRules in interface TcpRouteOrBuilder
    • getRulesOrBuilder

      public TcpRoute.RouteRuleOrBuilder getRulesOrBuilder(int index)
       Required. Rules that define how traffic is routed and handled. At least one
       RouteRule must be supplied. If there are multiple rules then the action
       taken will be the first rule to match.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilder in interface TcpRouteOrBuilder
    • getMeshesList

      public com.google.protobuf.ProtocolStringList getMeshesList()
       Optional. Meshes defines a list of meshes this TcpRoute is attached to, as
       one of the routing rules to route the requests served by the mesh.
      
       Each mesh reference should match the pattern:
       `projects/*/locations/global/meshes/<mesh_name>`
      
       The attached Mesh should be of a type SIDECAR
       
      repeated string meshes = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshesList in interface TcpRouteOrBuilder
      Returns:
      A list containing the meshes.
    • getMeshesCount

      public int getMeshesCount()
       Optional. Meshes defines a list of meshes this TcpRoute is attached to, as
       one of the routing rules to route the requests served by the mesh.
      
       Each mesh reference should match the pattern:
       `projects/*/locations/global/meshes/<mesh_name>`
      
       The attached Mesh should be of a type SIDECAR
       
      repeated string meshes = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshesCount in interface TcpRouteOrBuilder
      Returns:
      The count of meshes.
    • getMeshes

      public String getMeshes(int index)
       Optional. Meshes defines a list of meshes this TcpRoute is attached to, as
       one of the routing rules to route the requests served by the mesh.
      
       Each mesh reference should match the pattern:
       `projects/*/locations/global/meshes/<mesh_name>`
      
       The attached Mesh should be of a type SIDECAR
       
      repeated string meshes = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshes in interface TcpRouteOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The meshes at the given index.
    • getMeshesBytes

      public com.google.protobuf.ByteString getMeshesBytes(int index)
       Optional. Meshes defines a list of meshes this TcpRoute is attached to, as
       one of the routing rules to route the requests served by the mesh.
      
       Each mesh reference should match the pattern:
       `projects/*/locations/global/meshes/<mesh_name>`
      
       The attached Mesh should be of a type SIDECAR
       
      repeated string meshes = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshesBytes in interface TcpRouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the meshes at the given index.
    • getGatewaysList

      public com.google.protobuf.ProtocolStringList getGatewaysList()
       Optional. Gateways defines a list of gateways this TcpRoute is attached to,
       as one of the routing rules to route the requests served by the gateway.
      
       Each gateway reference should match the pattern:
       `projects/*/locations/global/gateways/<gateway_name>`
       
      repeated string gateways = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaysList in interface TcpRouteOrBuilder
      Returns:
      A list containing the gateways.
    • getGatewaysCount

      public int getGatewaysCount()
       Optional. Gateways defines a list of gateways this TcpRoute is attached to,
       as one of the routing rules to route the requests served by the gateway.
      
       Each gateway reference should match the pattern:
       `projects/*/locations/global/gateways/<gateway_name>`
       
      repeated string gateways = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaysCount in interface TcpRouteOrBuilder
      Returns:
      The count of gateways.
    • getGateways

      public String getGateways(int index)
       Optional. Gateways defines a list of gateways this TcpRoute is attached to,
       as one of the routing rules to route the requests served by the gateway.
      
       Each gateway reference should match the pattern:
       `projects/*/locations/global/gateways/<gateway_name>`
       
      repeated string gateways = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGateways in interface TcpRouteOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The gateways at the given index.
    • getGatewaysBytes

      public com.google.protobuf.ByteString getGatewaysBytes(int index)
       Optional. Gateways defines a list of gateways this TcpRoute is attached to,
       as one of the routing rules to route the requests served by the gateway.
      
       Each gateway reference should match the pattern:
       `projects/*/locations/global/gateways/<gateway_name>`
       
      repeated string gateways = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaysBytes in interface TcpRouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the gateways at the given index.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: TcpRouteOrBuilder
       Optional. Set of label tags associated with the TcpRoute resource.
       
      map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface TcpRouteOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of label tags associated with the TcpRoute resource.
       
      map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface TcpRouteOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. Set of label tags associated with the TcpRoute resource.
       
      map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface TcpRouteOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of label tags associated with the TcpRoute resource.
       
      map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface TcpRouteOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of label tags associated with the TcpRoute resource.
       
      map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface TcpRouteOrBuilder
    • 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 TcpRoute parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static TcpRoute.Builder newBuilder()
    • newBuilder

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

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

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

      public static TcpRoute getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<TcpRoute> 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 TcpRoute getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder