public static final class ContextRule.Builder extends GeneratedMessageV3.Builder<ContextRule.Builder> implements ContextRuleOrBuilder
A context rule provides information about the context for an individual API element.Protobuf type
google.api.ContextRule| Modifier and Type | Method and Description |
|---|---|
ContextRule.Builder |
addAllAllowedRequestExtensions(java.lang.Iterable<java.lang.String> values)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
ContextRule.Builder |
addAllAllowedResponseExtensions(java.lang.Iterable<java.lang.String> values)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ContextRule.Builder |
addAllowedRequestExtensions(java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
ContextRule.Builder |
addAllowedRequestExtensionsBytes(ByteString value)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
ContextRule.Builder |
addAllowedResponseExtensions(java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ContextRule.Builder |
addAllowedResponseExtensionsBytes(ByteString value)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ContextRule.Builder |
addAllProvided(java.lang.Iterable<java.lang.String> values)
A list of full type names of provided contexts.
|
ContextRule.Builder |
addAllRequested(java.lang.Iterable<java.lang.String> values)
A list of full type names of requested contexts.
|
ContextRule.Builder |
addProvided(java.lang.String value)
A list of full type names of provided contexts.
|
ContextRule.Builder |
addProvidedBytes(ByteString value)
A list of full type names of provided contexts.
|
ContextRule.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ContextRule.Builder |
addRequested(java.lang.String value)
A list of full type names of requested contexts.
|
ContextRule.Builder |
addRequestedBytes(ByteString value)
A list of full type names of requested contexts.
|
ContextRule |
build() |
ContextRule |
buildPartial() |
ContextRule.Builder |
clear() |
ContextRule.Builder |
clearAllowedRequestExtensions()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
ContextRule.Builder |
clearAllowedResponseExtensions()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ContextRule.Builder |
clearField(Descriptors.FieldDescriptor field) |
ContextRule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ContextRule.Builder |
clearProvided()
A list of full type names of provided contexts.
|
ContextRule.Builder |
clearRequested()
A list of full type names of requested contexts.
|
ContextRule.Builder |
clearSelector()
Selects the methods to which this rule applies.
|
ContextRule.Builder |
clone() |
java.lang.String |
getAllowedRequestExtensions(int index)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
ByteString |
getAllowedRequestExtensionsBytes(int index)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
int |
getAllowedRequestExtensionsCount()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
ProtocolStringList |
getAllowedRequestExtensionsList()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
java.lang.String |
getAllowedResponseExtensions(int index)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ByteString |
getAllowedResponseExtensionsBytes(int index)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
int |
getAllowedResponseExtensionsCount()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ProtocolStringList |
getAllowedResponseExtensionsList()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ContextRule |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getProvided(int index)
A list of full type names of provided contexts.
|
ByteString |
getProvidedBytes(int index)
A list of full type names of provided contexts.
|
int |
getProvidedCount()
A list of full type names of provided contexts.
|
ProtocolStringList |
getProvidedList()
A list of full type names of provided contexts.
|
java.lang.String |
getRequested(int index)
A list of full type names of requested contexts.
|
ByteString |
getRequestedBytes(int index)
A list of full type names of requested contexts.
|
int |
getRequestedCount()
A list of full type names of requested contexts.
|
ProtocolStringList |
getRequestedList()
A list of full type names of requested contexts.
|
java.lang.String |
getSelector()
Selects the methods to which this rule applies.
|
ByteString |
getSelectorBytes()
Selects the methods to which this rule applies.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ContextRule.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ContextRule.Builder |
mergeFrom(ContextRule other) |
ContextRule.Builder |
mergeFrom(Message other) |
ContextRule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ContextRule.Builder |
setAllowedRequestExtensions(int index,
java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
ContextRule.Builder |
setAllowedResponseExtensions(int index,
java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
ContextRule.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ContextRule.Builder |
setProvided(int index,
java.lang.String value)
A list of full type names of provided contexts.
|
ContextRule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ContextRule.Builder |
setRequested(int index,
java.lang.String value)
A list of full type names of requested contexts.
|
ContextRule.Builder |
setSelector(java.lang.String value)
Selects the methods to which this rule applies.
|
ContextRule.Builder |
setSelectorBytes(ByteString value)
Selects the methods to which this rule applies.
|
ContextRule.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ContextRule.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ContextRule build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ContextRule buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ContextRule.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ContextRule.Builder>public ContextRule.Builder mergeFrom(ContextRule other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ContextRule.Builder>java.io.IOExceptionpublic java.lang.String getSelector()
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;getSelector in interface ContextRuleOrBuilderpublic ByteString getSelectorBytes()
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;getSelectorBytes in interface ContextRuleOrBuilderpublic ContextRule.Builder setSelector(java.lang.String value)
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;public ContextRule.Builder clearSelector()
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;public ContextRule.Builder setSelectorBytes(ByteString value)
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;public ProtocolStringList getRequestedList()
A list of full type names of requested contexts.
repeated string requested = 2;getRequestedList in interface ContextRuleOrBuilderpublic int getRequestedCount()
A list of full type names of requested contexts.
repeated string requested = 2;getRequestedCount in interface ContextRuleOrBuilderpublic java.lang.String getRequested(int index)
A list of full type names of requested contexts.
repeated string requested = 2;getRequested in interface ContextRuleOrBuilderpublic ByteString getRequestedBytes(int index)
A list of full type names of requested contexts.
repeated string requested = 2;getRequestedBytes in interface ContextRuleOrBuilderpublic ContextRule.Builder setRequested(int index, java.lang.String value)
A list of full type names of requested contexts.
repeated string requested = 2;public ContextRule.Builder addRequested(java.lang.String value)
A list of full type names of requested contexts.
repeated string requested = 2;public ContextRule.Builder addAllRequested(java.lang.Iterable<java.lang.String> values)
A list of full type names of requested contexts.
repeated string requested = 2;public ContextRule.Builder clearRequested()
A list of full type names of requested contexts.
repeated string requested = 2;public ContextRule.Builder addRequestedBytes(ByteString value)
A list of full type names of requested contexts.
repeated string requested = 2;public ProtocolStringList getProvidedList()
A list of full type names of provided contexts.
repeated string provided = 3;getProvidedList in interface ContextRuleOrBuilderpublic int getProvidedCount()
A list of full type names of provided contexts.
repeated string provided = 3;getProvidedCount in interface ContextRuleOrBuilderpublic java.lang.String getProvided(int index)
A list of full type names of provided contexts.
repeated string provided = 3;getProvided in interface ContextRuleOrBuilderpublic ByteString getProvidedBytes(int index)
A list of full type names of provided contexts.
repeated string provided = 3;getProvidedBytes in interface ContextRuleOrBuilderpublic ContextRule.Builder setProvided(int index, java.lang.String value)
A list of full type names of provided contexts.
repeated string provided = 3;public ContextRule.Builder addProvided(java.lang.String value)
A list of full type names of provided contexts.
repeated string provided = 3;public ContextRule.Builder addAllProvided(java.lang.Iterable<java.lang.String> values)
A list of full type names of provided contexts.
repeated string provided = 3;public ContextRule.Builder clearProvided()
A list of full type names of provided contexts.
repeated string provided = 3;public ContextRule.Builder addProvidedBytes(ByteString value)
A list of full type names of provided contexts.
repeated string provided = 3;public ProtocolStringList getAllowedRequestExtensionsList()
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;getAllowedRequestExtensionsList in interface ContextRuleOrBuilderpublic int getAllowedRequestExtensionsCount()
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;getAllowedRequestExtensionsCount in interface ContextRuleOrBuilderpublic java.lang.String getAllowedRequestExtensions(int index)
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;getAllowedRequestExtensions in interface ContextRuleOrBuilderpublic ByteString getAllowedRequestExtensionsBytes(int index)
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;getAllowedRequestExtensionsBytes in interface ContextRuleOrBuilderpublic ContextRule.Builder setAllowedRequestExtensions(int index, java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;public ContextRule.Builder addAllowedRequestExtensions(java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;public ContextRule.Builder addAllAllowedRequestExtensions(java.lang.Iterable<java.lang.String> values)
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;public ContextRule.Builder clearAllowedRequestExtensions()
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;public ContextRule.Builder addAllowedRequestExtensionsBytes(ByteString value)
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
repeated string allowed_request_extensions = 4;public ProtocolStringList getAllowedResponseExtensionsList()
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;getAllowedResponseExtensionsList in interface ContextRuleOrBuilderpublic int getAllowedResponseExtensionsCount()
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;getAllowedResponseExtensionsCount in interface ContextRuleOrBuilderpublic java.lang.String getAllowedResponseExtensions(int index)
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;getAllowedResponseExtensions in interface ContextRuleOrBuilderpublic ByteString getAllowedResponseExtensionsBytes(int index)
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;getAllowedResponseExtensionsBytes in interface ContextRuleOrBuilderpublic ContextRule.Builder setAllowedResponseExtensions(int index, java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;public ContextRule.Builder addAllowedResponseExtensions(java.lang.String value)
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;public ContextRule.Builder addAllAllowedResponseExtensions(java.lang.Iterable<java.lang.String> values)
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;public ContextRule.Builder clearAllowedResponseExtensions()
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;public ContextRule.Builder addAllowedResponseExtensionsBytes(ByteString value)
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
repeated string allowed_response_extensions = 5;public final ContextRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ContextRule.Builder>public final ContextRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ContextRule.Builder>