public static final class ContextRule.Builder extends com.google.protobuf.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(Iterable<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(Iterable<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(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(com.google.protobuf.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(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(com.google.protobuf.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(Iterable<String> values)
A list of full type names of provided contexts.
|
ContextRule.Builder |
addAllRequested(Iterable<String> values)
A list of full type names of requested contexts.
|
ContextRule.Builder |
addProvided(String value)
A list of full type names of provided contexts.
|
ContextRule.Builder |
addProvidedBytes(com.google.protobuf.ByteString value)
A list of full type names of provided contexts.
|
ContextRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ContextRule.Builder |
addRequested(String value)
A list of full type names of requested contexts.
|
ContextRule.Builder |
addRequestedBytes(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field) |
ContextRule.Builder |
clearOneof(com.google.protobuf.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() |
String |
getAllowedRequestExtensions(int index)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
com.google.protobuf.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.
|
com.google.protobuf.ProtocolStringList |
getAllowedRequestExtensionsList()
A list of full type names or extension IDs of extensions allowed in grpc
side channel from client to backend.
|
String |
getAllowedResponseExtensions(int index)
A list of full type names or extension IDs of extensions allowed in grpc
side channel from backend to client.
|
com.google.protobuf.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.
|
com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getProvided(int index)
A list of full type names of provided contexts.
|
com.google.protobuf.ByteString |
getProvidedBytes(int index)
A list of full type names of provided contexts.
|
int |
getProvidedCount()
A list of full type names of provided contexts.
|
com.google.protobuf.ProtocolStringList |
getProvidedList()
A list of full type names of provided contexts.
|
String |
getRequested(int index)
A list of full type names of requested contexts.
|
com.google.protobuf.ByteString |
getRequestedBytes(int index)
A list of full type names of requested contexts.
|
int |
getRequestedCount()
A list of full type names of requested contexts.
|
com.google.protobuf.ProtocolStringList |
getRequestedList()
A list of full type names of requested contexts.
|
String |
getSelector()
Selects the methods to which this rule applies.
|
com.google.protobuf.ByteString |
getSelectorBytes()
Selects the methods to which this rule applies.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ContextRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ContextRule.Builder |
mergeFrom(ContextRule other) |
ContextRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
ContextRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ContextRule.Builder |
setAllowedRequestExtensions(int index,
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,
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(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ContextRule.Builder |
setProvided(int index,
String value)
A list of full type names of provided contexts.
|
ContextRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ContextRule.Builder |
setRequested(int index,
String value)
A list of full type names of requested contexts.
|
ContextRule.Builder |
setSelector(String value)
Selects the methods to which this rule applies.
|
ContextRule.Builder |
setSelectorBytes(com.google.protobuf.ByteString value)
Selects the methods to which this rule applies.
|
ContextRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ContextRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ContextRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ContextRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContextRule.Builder>public ContextRule.Builder mergeFrom(ContextRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public ContextRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContextRule.Builder>IOExceptionpublic 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 com.google.protobuf.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(String value)
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;value - The selector to set.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(com.google.protobuf.ByteString value)
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;value - The bytes for selector to set.public com.google.protobuf.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 String getRequested(int index)
A list of full type names of requested contexts.
repeated string requested = 2;getRequested in interface ContextRuleOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getRequestedBytes(int index)
A list of full type names of requested contexts.
repeated string requested = 2;getRequestedBytes in interface ContextRuleOrBuilderindex - The index of the value to return.public ContextRule.Builder setRequested(int index, String value)
A list of full type names of requested contexts.
repeated string requested = 2;index - The index to set the value at.value - The requested to set.public ContextRule.Builder addRequested(String value)
A list of full type names of requested contexts.
repeated string requested = 2;value - The requested to add.public ContextRule.Builder addAllRequested(Iterable<String> values)
A list of full type names of requested contexts.
repeated string requested = 2;values - The requested to add.public ContextRule.Builder clearRequested()
A list of full type names of requested contexts.
repeated string requested = 2;public ContextRule.Builder addRequestedBytes(com.google.protobuf.ByteString value)
A list of full type names of requested contexts.
repeated string requested = 2;value - The bytes of the requested to add.public com.google.protobuf.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 String getProvided(int index)
A list of full type names of provided contexts.
repeated string provided = 3;getProvided in interface ContextRuleOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getProvidedBytes(int index)
A list of full type names of provided contexts.
repeated string provided = 3;getProvidedBytes in interface ContextRuleOrBuilderindex - The index of the value to return.public ContextRule.Builder setProvided(int index, String value)
A list of full type names of provided contexts.
repeated string provided = 3;index - The index to set the value at.value - The provided to set.public ContextRule.Builder addProvided(String value)
A list of full type names of provided contexts.
repeated string provided = 3;value - The provided to add.public ContextRule.Builder addAllProvided(Iterable<String> values)
A list of full type names of provided contexts.
repeated string provided = 3;values - The provided to add.public ContextRule.Builder clearProvided()
A list of full type names of provided contexts.
repeated string provided = 3;public ContextRule.Builder addProvidedBytes(com.google.protobuf.ByteString value)
A list of full type names of provided contexts.
repeated string provided = 3;value - The bytes of the provided to add.public com.google.protobuf.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 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 ContextRuleOrBuilderindex - The index of the element to return.public com.google.protobuf.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 ContextRuleOrBuilderindex - The index of the value to return.public ContextRule.Builder setAllowedRequestExtensions(int index, 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;index - The index to set the value at.value - The allowedRequestExtensions to set.public ContextRule.Builder addAllowedRequestExtensions(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;value - The allowedRequestExtensions to add.public ContextRule.Builder addAllAllowedRequestExtensions(Iterable<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;values - The allowedRequestExtensions to add.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(com.google.protobuf.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;value - The bytes of the allowedRequestExtensions to add.public com.google.protobuf.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 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 ContextRuleOrBuilderindex - The index of the element to return.public com.google.protobuf.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 ContextRuleOrBuilderindex - The index of the value to return.public ContextRule.Builder setAllowedResponseExtensions(int index, 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;index - The index to set the value at.value - The allowedResponseExtensions to set.public ContextRule.Builder addAllowedResponseExtensions(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;value - The allowedResponseExtensions to add.public ContextRule.Builder addAllAllowedResponseExtensions(Iterable<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;values - The allowedResponseExtensions to add.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(com.google.protobuf.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;value - The bytes of the allowedResponseExtensions to add.public final ContextRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>public final ContextRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>Copyright © 2022 Google LLC. All rights reserved.