public static final class GrpcRoute.RouteRule.Builder extends GeneratedMessageV3.Builder<GrpcRoute.RouteRule.Builder> implements GrpcRoute.RouteRuleOrBuilder
Describes how to route traffic.
Protobuf type google.events.cloud.networkservices.v1.GrpcRoute.RouteRule
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
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch>
|
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RouteRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GrpcRoute.RouteRule build()
buildPartial()
public GrpcRoute.RouteRule buildPartial()
clear()
public GrpcRoute.RouteRule.Builder clear()
Overrides
clearAction()
public GrpcRoute.RouteRule.Builder clearAction()
Required. A detailed rule defining how to route traffic. This field is
required.
.google.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
clearField(Descriptors.FieldDescriptor field)
public GrpcRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public GrpcRoute.RouteRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GrpcRoute.RouteRule.Builder clone()
Overrides
getAction()
public GrpcRoute.RouteAction getAction()
Required. A detailed rule defining how to route traffic. This field is
required.
.google.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
getActionBuilder()
public GrpcRoute.RouteAction.Builder getActionBuilder()
Required. A detailed rule defining how to route traffic. This field is
required.
.google.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
getActionOrBuilder()
public GrpcRoute.RouteActionOrBuilder getActionOrBuilder()
Required. A detailed rule defining how to route traffic. This field is
required.
.google.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
getDefaultInstanceForType()
public GrpcRoute.RouteRule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Returns |
Type |
Description |
List<? extends com.google.events.cloud.networkservices.v1.GrpcRoute.RouteMatchOrBuilder> |
|
hasAction()
public boolean hasAction()
Required. A detailed rule defining how to route traffic. This field is
required.
.google.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
Returns |
Type |
Description |
boolean |
Whether the action field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
mergeFrom(GrpcRoute.RouteRule other)
public GrpcRoute.RouteRule.Builder mergeFrom(GrpcRoute.RouteRule other)
public GrpcRoute.RouteRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GrpcRoute.RouteRule.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
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.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
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.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RouteRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GrpcRoute.RouteRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RouteRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides