Class GrpcRoute.Builder

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

public static final class GrpcRoute.Builder extends com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.Builder> implements GrpcRouteOrBuilder
 GrpcRoute is the resource defining how gRPC traffic routed by a Mesh
 or Gateway resource is routed.
 
Protobuf type google.cloud.networkservices.v1.GrpcRoute
  • 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<GrpcRoute.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public GrpcRoute.Builder mergeFrom(GrpcRoute other)
    • isInitialized

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

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

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

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

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

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

      public GrpcRoute.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name of the GrpcRoute resource. It matches pattern
       `projects/*/locations/global/grpcRoutes/<grpc_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 = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLink in interface GrpcRouteOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

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

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

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

      public GrpcRoute.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. Server-defined URL of this resource
       
      string self_link = 12 [(.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 GrpcRouteOrBuilder
      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 GrpcRouteOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public GrpcRoute.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 GrpcRoute.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 GrpcRoute.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 GrpcRoute.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 GrpcRouteOrBuilder
    • 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 GrpcRouteOrBuilder
      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 GrpcRouteOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public GrpcRoute.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 GrpcRoute.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 GrpcRoute.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 GrpcRoute.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 GrpcRouteOrBuilder
    • getLabelsCount

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

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

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

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

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

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

      public GrpcRoute.Builder clearLabels()
    • removeLabels

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

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

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

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

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

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

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

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

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

      public com.google.protobuf.ProtocolStringList getHostnamesList()
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostnamesList in interface GrpcRouteOrBuilder
      Returns:
      A list containing the hostnames.
    • getHostnamesCount

      public int getHostnamesCount()
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostnamesCount in interface GrpcRouteOrBuilder
      Returns:
      The count of hostnames.
    • getHostnames

      public String getHostnames(int index)
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostnames in interface GrpcRouteOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The hostnames at the given index.
    • getHostnamesBytes

      public com.google.protobuf.ByteString getHostnamesBytes(int index)
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostnamesBytes in interface GrpcRouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the hostnames at the given index.
    • setHostnames

      public GrpcRoute.Builder setHostnames(int index, String value)
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The hostnames to set.
      Returns:
      This builder for chaining.
    • addHostnames

      public GrpcRoute.Builder addHostnames(String value)
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The hostnames to add.
      Returns:
      This builder for chaining.
    • addAllHostnames

      public GrpcRoute.Builder addAllHostnames(Iterable<String> values)
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The hostnames to add.
      Returns:
      This builder for chaining.
    • clearHostnames

      public GrpcRoute.Builder clearHostnames()
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addHostnamesBytes

      public GrpcRoute.Builder addHostnamesBytes(com.google.protobuf.ByteString value)
       Required. Service hostnames with an optional port for which this route
       describes traffic.
      
       Format: <hostname>[:<port>]
      
       Hostname is the fully qualified domain name of a network host. This matches
       the RFC 1123 definition of a hostname with 2 notable exceptions:
       - IPs are not allowed.
       - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
       label must appear by itself as the first label.
      
       Hostname can be "precise" which is a domain name without the terminating
       dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
       domain name prefixed with a single wildcard label (e.g. `*.example.com`).
      
       Note that as per RFC1035 and RFC1123, a label must consist of lower case
       alphanumeric characters or '-', and must start and end with an alphanumeric
       character. No other punctuation is allowed.
      
       The routes associated with a Mesh or Gateway must have unique hostnames. If
       you attempt to attach multiple routes with conflicting hostnames, the
       configuration will be rejected.
      
       For example, while it is acceptable for routes for the hostnames
       `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
       not possible to associate two routes both with `*.bar.com` or both with
       `bar.com`.
      
       If a port is specified, then gRPC clients must use the channel URI with the
       port to match this rule (i.e. "xds:///service:123"), otherwise they must
       supply the URI without a port (i.e. "xds:///service").
       
      repeated string hostnames = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the hostnames to add.
      Returns:
      This builder for chaining.
    • getMeshesList

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

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

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

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

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

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

      public GrpcRoute.Builder addMeshesBytes(com.google.protobuf.ByteString value)
       Optional. Meshes defines a list of meshes this GrpcRoute 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>`
       
      repeated string meshes = 9 [(.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 GrpcRoute 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 = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaysList in interface GrpcRouteOrBuilder
      Returns:
      A list containing the gateways.
    • getGatewaysCount

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

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

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

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

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

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

      public List<GrpcRoute.RouteRule> getRulesList()
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesList in interface GrpcRouteOrBuilder
    • getRulesCount

      public int getRulesCount()
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesCount in interface GrpcRouteOrBuilder
    • getRules

      public GrpcRoute.RouteRule getRules(int index)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRules in interface GrpcRouteOrBuilder
    • setRules

      public GrpcRoute.Builder setRules(int index, GrpcRoute.RouteRule value)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • setRules

      public GrpcRoute.Builder setRules(int index, GrpcRoute.RouteRule.Builder builderForValue)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public GrpcRoute.Builder addRules(GrpcRoute.RouteRule value)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public GrpcRoute.Builder addRules(int index, GrpcRoute.RouteRule value)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public GrpcRoute.Builder addRules(GrpcRoute.RouteRule.Builder builderForValue)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public GrpcRoute.Builder addRules(int index, GrpcRoute.RouteRule.Builder builderForValue)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • addAllRules

      public GrpcRoute.Builder addAllRules(Iterable<? extends GrpcRoute.RouteRule> values)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • clearRules

      public GrpcRoute.Builder clearRules()
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • removeRules

      public GrpcRoute.Builder removeRules(int index)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • getRulesBuilder

      public GrpcRoute.RouteRule.Builder getRulesBuilder(int index)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • getRulesOrBuilder

      public GrpcRoute.RouteRuleOrBuilder getRulesOrBuilder(int index)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilder in interface GrpcRouteOrBuilder
    • getRulesOrBuilderList

      public List<? extends GrpcRoute.RouteRuleOrBuilder> getRulesOrBuilderList()
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilderList in interface GrpcRouteOrBuilder
    • addRulesBuilder

      public GrpcRoute.RouteRule.Builder addRulesBuilder()
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • addRulesBuilder

      public GrpcRoute.RouteRule.Builder addRulesBuilder(int index)
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];
    • getRulesBuilderList

      public List<GrpcRoute.RouteRule.Builder> getRulesBuilderList()
       Required. A list of detailed rules defining how to route traffic.
      
       Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
       first matching GrpcRoute.RouteRule will be executed. At least one rule
       must be supplied.
       
      repeated .google.cloud.networkservices.v1.GrpcRoute.RouteRule rules = 7 [(.google.api.field_behavior) = REQUIRED];