public static final class GrpcRoute.RouteMatch.Builder extends GeneratedMessageV3.Builder<GrpcRoute.RouteMatch.Builder> implements GrpcRoute.RouteMatchOrBuilder
Criteria for matching traffic. A RouteMatch will be considered to match
when all supplied fields match.
Protobuf type google.cloud.networkservices.v1.GrpcRoute.RouteMatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
public GrpcRoute.RouteMatch.Builder addAllHeaders(Iterable<? extends GrpcRoute.HeaderMatch> values)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.networkservices.v1.GrpcRoute.HeaderMatch>
|
public GrpcRoute.RouteMatch.Builder addHeaders(GrpcRoute.HeaderMatch value)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public GrpcRoute.RouteMatch.Builder addHeaders(GrpcRoute.HeaderMatch.Builder builderForValue)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public GrpcRoute.RouteMatch.Builder addHeaders(int index, GrpcRoute.HeaderMatch value)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public GrpcRoute.RouteMatch.Builder addHeaders(int index, GrpcRoute.HeaderMatch.Builder builderForValue)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public GrpcRoute.HeaderMatch.Builder addHeadersBuilder()
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public GrpcRoute.HeaderMatch.Builder addHeadersBuilder(int index)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RouteMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GrpcRoute.RouteMatch build()
buildPartial()
public GrpcRoute.RouteMatch buildPartial()
clear()
public GrpcRoute.RouteMatch.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GrpcRoute.RouteMatch.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public GrpcRoute.RouteMatch.Builder clearHeaders()
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
clearMethod()
public GrpcRoute.RouteMatch.Builder clearMethod()
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof)
public GrpcRoute.RouteMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GrpcRoute.RouteMatch.Builder clone()
Overrides
getDefaultInstanceForType()
public GrpcRoute.RouteMatch getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public GrpcRoute.HeaderMatch getHeaders(int index)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
public GrpcRoute.HeaderMatch.Builder getHeadersBuilder(int index)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
public List<GrpcRoute.HeaderMatch.Builder> getHeadersBuilderList()
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public int getHeadersCount()
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
public List<GrpcRoute.HeaderMatch> getHeadersList()
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public GrpcRoute.HeaderMatchOrBuilder getHeadersOrBuilder(int index)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
public List<? extends GrpcRoute.HeaderMatchOrBuilder> getHeadersOrBuilderList()
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.networkservices.v1.GrpcRoute.HeaderMatchOrBuilder> |
|
getMethod()
public GrpcRoute.MethodMatch getMethod()
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
getMethodBuilder()
public GrpcRoute.MethodMatch.Builder getMethodBuilder()
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
getMethodOrBuilder()
public GrpcRoute.MethodMatchOrBuilder getMethodOrBuilder()
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
hasMethod()
public boolean hasMethod()
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the method field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GrpcRoute.RouteMatch other)
public GrpcRoute.RouteMatch.Builder mergeFrom(GrpcRoute.RouteMatch other)
public GrpcRoute.RouteMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GrpcRoute.RouteMatch.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeMethod(GrpcRoute.MethodMatch value)
public GrpcRoute.RouteMatch.Builder mergeMethod(GrpcRoute.MethodMatch value)
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RouteMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public GrpcRoute.RouteMatch.Builder removeHeaders(int index)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RouteMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public GrpcRoute.RouteMatch.Builder setHeaders(int index, GrpcRoute.HeaderMatch value)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
public GrpcRoute.RouteMatch.Builder setHeaders(int index, GrpcRoute.HeaderMatch.Builder builderForValue)
Optional. Specifies a collection of headers to match.
repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];
setMethod(GrpcRoute.MethodMatch value)
public GrpcRoute.RouteMatch.Builder setMethod(GrpcRoute.MethodMatch value)
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
setMethod(GrpcRoute.MethodMatch.Builder builderForValue)
public GrpcRoute.RouteMatch.Builder setMethod(GrpcRoute.MethodMatch.Builder builderForValue)
Optional. A gRPC method to match against. If this field is empty or
omitted, will match all methods.
optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GrpcRoute.RouteMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RouteMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides