Class TlsRoute.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TlsRoute.Builder>
com.google.cloud.networkservices.v1.TlsRoute.Builder
All Implemented Interfaces:
TlsRouteOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TlsRoute

public static final class TlsRoute.Builder extends com.google.protobuf.GeneratedMessage.Builder<TlsRoute.Builder> implements TlsRouteOrBuilder
 TlsRoute defines how traffic should be routed based on SNI and other matching
 L3 attributes.
 
Protobuf type google.cloud.networkservices.v1.TlsRoute
  • 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<TlsRoute.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public TlsRoute.Builder mergeFrom(TlsRoute other)
    • isInitialized

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

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

      public String getName()
       Identifier. Name of the TlsRoute resource. It matches pattern
       `projects/*/locations/global/tlsRoutes/tls_route_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface TlsRouteOrBuilder
      Returns:
      The name.
    • getNameBytes

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

      public TlsRoute.Builder setName(String value)
       Identifier. Name of the TlsRoute resource. It matches pattern
       `projects/*/locations/global/tlsRoutes/tls_route_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TlsRoute.Builder clearName()
       Identifier. Name of the TlsRoute resource. It matches pattern
       `projects/*/locations/global/tlsRoutes/tls_route_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TlsRoute.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name of the TlsRoute resource. It matches pattern
       `projects/*/locations/global/tlsRoutes/tls_route_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSelfLink

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

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

      public TlsRoute.Builder setSelfLink(String value)
       Output only. Server-defined URL of this resource
       
      string self_link = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public TlsRoute.Builder clearSelfLink()
       Output only. Server-defined URL of this resource
       
      string self_link = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public TlsRoute.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. Server-defined URL of this resource
       
      string self_link = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • 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 TlsRouteOrBuilder
      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 TlsRouteOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public TlsRoute.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public TlsRoute.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public TlsRoute.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public TlsRoute.Builder clearCreateTime()
       Output only. The timestamp when the resource 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 timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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 TlsRouteOrBuilder
    • 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 TlsRouteOrBuilder
      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 TlsRouteOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public TlsRoute.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public TlsRoute.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public TlsRoute.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public TlsRoute.Builder clearUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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 TlsRouteOrBuilder
    • 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 TlsRouteOrBuilder
      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 TlsRouteOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TlsRoute.Builder setDescription(String value)
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TlsRoute.Builder clearDescription()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TlsRoute.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getRulesList

      public List<TlsRoute.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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesList in interface TlsRouteOrBuilder
    • 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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesCount in interface TlsRouteOrBuilder
    • getRules

      public TlsRoute.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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRules in interface TlsRouteOrBuilder
    • setRules

      public TlsRoute.Builder setRules(int index, TlsRoute.RouteRule value)
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • setRules

      public TlsRoute.Builder setRules(int index, TlsRoute.RouteRule.Builder builderForValue)
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public TlsRoute.Builder addRules(TlsRoute.RouteRule value)
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public TlsRoute.Builder addRules(int index, TlsRoute.RouteRule value)
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public TlsRoute.Builder addRules(TlsRoute.RouteRule.Builder builderForValue)
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public TlsRoute.Builder addRules(int index, TlsRoute.RouteRule.Builder builderForValue)
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • addAllRules

      public TlsRoute.Builder addAllRules(Iterable<? extends TlsRoute.RouteRule> values)
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • clearRules

      public TlsRoute.Builder clearRules()
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • removeRules

      public TlsRoute.Builder removeRules(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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • getRulesBuilder

      public TlsRoute.RouteRule.Builder getRulesBuilder(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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • getRulesOrBuilder

      public TlsRoute.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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilder in interface TlsRouteOrBuilder
    • getRulesOrBuilderList

      public List<? extends TlsRoute.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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilderList in interface TlsRouteOrBuilder
    • addRulesBuilder

      public TlsRoute.RouteRule.Builder addRulesBuilder()
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • addRulesBuilder

      public TlsRoute.RouteRule.Builder addRulesBuilder(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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • getRulesBuilderList

      public List<TlsRoute.RouteRule.Builder> getRulesBuilderList()
       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.TlsRoute.RouteRule rules = 5 [(.google.api.field_behavior) = REQUIRED];
    • getMeshesList

      public com.google.protobuf.ProtocolStringList getMeshesList()
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshesList in interface TlsRouteOrBuilder
      Returns:
      A list containing the meshes.
    • getMeshesCount

      public int getMeshesCount()
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshesCount in interface TlsRouteOrBuilder
      Returns:
      The count of meshes.
    • getMeshes

      public String getMeshes(int index)
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshes in interface TlsRouteOrBuilder
      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 TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getMeshesBytes in interface TlsRouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the meshes at the given index.
    • setMeshes

      public TlsRoute.Builder setMeshes(int index, String value)
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The meshes to set.
      Returns:
      This builder for chaining.
    • addMeshes

      public TlsRoute.Builder addMeshes(String value)
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The meshes to add.
      Returns:
      This builder for chaining.
    • addAllMeshes

      public TlsRoute.Builder addAllMeshes(Iterable<String> values)
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The meshes to add.
      Returns:
      This builder for chaining.
    • clearMeshes

      public TlsRoute.Builder clearMeshes()
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addMeshesBytes

      public TlsRoute.Builder addMeshesBytes(com.google.protobuf.ByteString value)
       Optional. Meshes defines a list of meshes this TlsRoute 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 = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the meshes to add.
      Returns:
      This builder for chaining.
    • getGatewaysList

      public com.google.protobuf.ProtocolStringList getGatewaysList()
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaysList in interface TlsRouteOrBuilder
      Returns:
      A list containing the gateways.
    • getGatewaysCount

      public int getGatewaysCount()
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaysCount in interface TlsRouteOrBuilder
      Returns:
      The count of gateways.
    • getGateways

      public String getGateways(int index)
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGateways in interface TlsRouteOrBuilder
      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 TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaysBytes in interface TlsRouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the gateways at the given index.
    • setGateways

      public TlsRoute.Builder setGateways(int index, String value)
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The gateways to set.
      Returns:
      This builder for chaining.
    • addGateways

      public TlsRoute.Builder addGateways(String value)
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The gateways to add.
      Returns:
      This builder for chaining.
    • addAllGateways

      public TlsRoute.Builder addAllGateways(Iterable<String> values)
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The gateways to add.
      Returns:
      This builder for chaining.
    • clearGateways

      public TlsRoute.Builder clearGateways()
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addGatewaysBytes

      public TlsRoute.Builder addGatewaysBytes(com.google.protobuf.ByteString value)
       Optional. Gateways defines a list of gateways this TlsRoute 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 = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the gateways to add.
      Returns:
      This builder for chaining.
    • getLabelsCount

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

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

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

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

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

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

      public TlsRoute.Builder clearLabels()
    • removeLabels

      public TlsRoute.Builder removeLabels(String key)
       Optional. Set of label tags associated with the TlsRoute resource.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public TlsRoute.Builder putLabels(String key, String value)
       Optional. Set of label tags associated with the TlsRoute resource.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public TlsRoute.Builder putAllLabels(Map<String,String> values)
       Optional. Set of label tags associated with the TlsRoute resource.
       
      map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];