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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ContextRule build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ContextRule buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ContextRule.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ContextRule.Builder>
public ContextRule.Builder mergeFrom(ContextRule other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public ContextRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ContextRule.Builder>
java.io.IOException
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public int getRequestedCount()
A list of full type names of requested contexts.
repeated string requested = 2;
getRequestedCount
in interface ContextRuleOrBuilder
public java.lang.String getRequested(int index)
A list of full type names of requested contexts.
repeated string requested = 2;
getRequested
in interface ContextRuleOrBuilder
public ByteString getRequestedBytes(int index)
A list of full type names of requested contexts.
repeated string requested = 2;
getRequestedBytes
in interface ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public int getProvidedCount()
A list of full type names of provided contexts.
repeated string provided = 3;
getProvidedCount
in interface ContextRuleOrBuilder
public java.lang.String getProvided(int index)
A list of full type names of provided contexts.
repeated string provided = 3;
getProvided
in interface ContextRuleOrBuilder
public ByteString getProvidedBytes(int index)
A list of full type names of provided contexts.
repeated string provided = 3;
getProvidedBytes
in interface ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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 ContextRuleOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ContextRule.Builder>
public final ContextRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ContextRule.Builder>