public static final class GrpcRoute.RouteRule.Builder extends GeneratedMessage.Builder<GrpcRoute.RouteRule.Builder> implements GrpcRoute.RouteRuleOrBuilderDescribes how to route traffic.
Protobuf type google.cloud.networkservices.v1.GrpcRoute.RouteRule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GrpcRoute.RouteRule.BuilderImplements
GrpcRoute.RouteRuleOrBuilderStatic 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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
|
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 |
|