Class GrpcRoute.RouteRule.Builder (0.7.0)

public static final class GrpcRoute.RouteRule.Builder extends GeneratedMessageV3.Builder<GrpcRoute.RouteRule.Builder> implements GrpcRoute.RouteRuleOrBuilder

Describes how to route traffic.

Protobuf type google.cloud.networkservices.v1.GrpcRoute.RouteRule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMatches(Iterable<? extends GrpcRoute.RouteMatch> values)

public GrpcRoute.RouteRule.Builder addAllMatches(Iterable<? extends GrpcRoute.RouteMatch> values)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.GrpcRoute.RouteMatch>
Returns
Type Description
GrpcRoute.RouteRule.Builder

addMatches(GrpcRoute.RouteMatch value)

public GrpcRoute.RouteRule.Builder addMatches(GrpcRoute.RouteMatch value)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GrpcRoute.RouteMatch
Returns
Type Description
GrpcRoute.RouteRule.Builder

addMatches(GrpcRoute.RouteMatch.Builder builderForValue)

public GrpcRoute.RouteRule.Builder addMatches(GrpcRoute.RouteMatch.Builder builderForValue)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue GrpcRoute.RouteMatch.Builder
Returns
Type Description
GrpcRoute.RouteRule.Builder

addMatches(int index, GrpcRoute.RouteMatch value)

public GrpcRoute.RouteRule.Builder addMatches(int index, GrpcRoute.RouteMatch value)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value GrpcRoute.RouteMatch
Returns
Type Description
GrpcRoute.RouteRule.Builder

addMatches(int index, GrpcRoute.RouteMatch.Builder builderForValue)

public GrpcRoute.RouteRule.Builder addMatches(int index, GrpcRoute.RouteMatch.Builder builderForValue)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue GrpcRoute.RouteMatch.Builder
Returns
Type Description
GrpcRoute.RouteRule.Builder

addMatchesBuilder()

public GrpcRoute.RouteMatch.Builder addMatchesBuilder()

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.RouteMatch.Builder

addMatchesBuilder(int index)

public GrpcRoute.RouteMatch.Builder addMatchesBuilder(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.RouteMatch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GrpcRoute.RouteRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

build()

public GrpcRoute.RouteRule build()
Returns
Type Description
GrpcRoute.RouteRule

buildPartial()

public GrpcRoute.RouteRule buildPartial()
Returns
Type Description
GrpcRoute.RouteRule

clear()

public GrpcRoute.RouteRule.Builder clear()
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

clearAction()

public GrpcRoute.RouteRule.Builder clearAction()

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute.RouteRule.Builder

clearField(Descriptors.FieldDescriptor field)

public GrpcRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

clearMatches()

public GrpcRoute.RouteRule.Builder clearMatches()

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.RouteRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GrpcRoute.RouteRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

clone()

public GrpcRoute.RouteRule.Builder clone()
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

getAction()

public GrpcRoute.RouteAction getAction()

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute.RouteAction

The action.

getActionBuilder()

public GrpcRoute.RouteAction.Builder getActionBuilder()

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute.RouteAction.Builder

getActionOrBuilder()

public GrpcRoute.RouteActionOrBuilder getActionOrBuilder()

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute.RouteActionOrBuilder

getDefaultInstanceForType()

public GrpcRoute.RouteRule getDefaultInstanceForType()
Returns
Type Description
GrpcRoute.RouteRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMatches(int index)

public GrpcRoute.RouteMatch getMatches(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.RouteMatch

getMatchesBuilder(int index)

public GrpcRoute.RouteMatch.Builder getMatchesBuilder(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.RouteMatch.Builder

getMatchesBuilderList()

public List<GrpcRoute.RouteMatch.Builder> getMatchesBuilderList()

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getMatchesCount()

public int getMatchesCount()

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMatchesList()

public List<GrpcRoute.RouteMatch> getMatchesList()

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RouteMatch>

getMatchesOrBuilder(int index)

public GrpcRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

public List<? extends GrpcRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.GrpcRoute.RouteMatchOrBuilder>

hasAction()

public boolean hasAction()

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the action field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAction(GrpcRoute.RouteAction value)

public GrpcRoute.RouteRule.Builder mergeAction(GrpcRoute.RouteAction value)

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GrpcRoute.RouteAction
Returns
Type Description
GrpcRoute.RouteRule.Builder

mergeFrom(GrpcRoute.RouteRule other)

public GrpcRoute.RouteRule.Builder mergeFrom(GrpcRoute.RouteRule other)
Parameter
Name Description
other GrpcRoute.RouteRule
Returns
Type Description
GrpcRoute.RouteRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GrpcRoute.RouteRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GrpcRoute.RouteRule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GrpcRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

removeMatches(int index)

public GrpcRoute.RouteRule.Builder removeMatches(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.RouteRule.Builder

setAction(GrpcRoute.RouteAction value)

public GrpcRoute.RouteRule.Builder setAction(GrpcRoute.RouteAction value)

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GrpcRoute.RouteAction
Returns
Type Description
GrpcRoute.RouteRule.Builder

setAction(GrpcRoute.RouteAction.Builder builderForValue)

public GrpcRoute.RouteRule.Builder setAction(GrpcRoute.RouteAction.Builder builderForValue)

Required. A detailed rule defining how to route traffic. This field is required.

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GrpcRoute.RouteAction.Builder
Returns
Type Description
GrpcRoute.RouteRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GrpcRoute.RouteRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

setMatches(int index, GrpcRoute.RouteMatch value)

public GrpcRoute.RouteRule.Builder setMatches(int index, GrpcRoute.RouteMatch value)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value GrpcRoute.RouteMatch
Returns
Type Description
GrpcRoute.RouteRule.Builder

setMatches(int index, GrpcRoute.RouteMatch.Builder builderForValue)

public GrpcRoute.RouteRule.Builder setMatches(int index, GrpcRoute.RouteMatch.Builder builderForValue)

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue GrpcRoute.RouteMatch.Builder
Returns
Type Description
GrpcRoute.RouteRule.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GrpcRoute.RouteRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GrpcRoute.RouteRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GrpcRoute.RouteRule.Builder
Overrides