Package com.google.api
Class ContextRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
com.google.api.ContextRule.Builder
- All Implemented Interfaces:
ContextRuleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ContextRule
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedRequestExtensions
(Iterable<String> values) A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.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.A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.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.addAllProvided
(Iterable<String> values) A list of full type names of provided contexts.addAllRequested
(Iterable<String> values) A list of full type names of requested contexts.addProvided
(String value) A list of full type names of provided contexts.addProvidedBytes
(com.google.protobuf.ByteString value) A list of full type names of provided contexts.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRequested
(String value) A list of full type names of requested contexts.addRequestedBytes
(com.google.protobuf.ByteString value) A list of full type names of requested contexts.build()
clear()
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) A list of full type names of provided contexts.A list of full type names of requested contexts.Selects the methods to which this rule applies.clone()
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
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.com.google.protobuf.ProtocolStringList
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.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
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.com.google.protobuf.ProtocolStringList
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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
A list of full type names of provided contexts.com.google.protobuf.ProtocolStringList
A list of full type names of provided contexts.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
A list of full type names of requested contexts.com.google.protobuf.ProtocolStringList
A list of full type names of requested contexts.Selects the methods to which this rule applies.com.google.protobuf.ByteString
Selects the methods to which this rule applies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(ContextRule other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final ContextRule.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.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.setProvided
(int index, String value) A list of full type names of provided contexts.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequested
(int index, String value) A list of full type names of requested contexts.setSelector
(String value) Selects the methods to which this rule applies.setSelectorBytes
(com.google.protobuf.ByteString value) Selects the methods to which this rule applies.final ContextRule.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
setField
public ContextRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
setRepeatedField
public ContextRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
addRepeatedField
public ContextRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContextRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
mergeFrom
public ContextRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContextRule.Builder>
- Throws:
IOException
-
getSelector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
- Specified by:
getSelector
in interfaceContextRuleOrBuilder
- Returns:
- The selector.
-
getSelectorBytes
public 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;
- Specified by:
getSelectorBytes
in interfaceContextRuleOrBuilder
- Returns:
- The bytes for selector.
-
setSelector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
- Parameters:
value
- The selector to set.- Returns:
- This builder for chaining.
-
clearSelector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
- Returns:
- This builder for chaining.
-
setSelectorBytes
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
string selector = 1;
- Parameters:
value
- The bytes for selector to set.- Returns:
- This builder for chaining.
-
getRequestedList
public com.google.protobuf.ProtocolStringList getRequestedList()A list of full type names of requested contexts.
repeated string requested = 2;
- Specified by:
getRequestedList
in interfaceContextRuleOrBuilder
- Returns:
- A list containing the requested.
-
getRequestedCount
public int getRequestedCount()A list of full type names of requested contexts.
repeated string requested = 2;
- Specified by:
getRequestedCount
in interfaceContextRuleOrBuilder
- Returns:
- The count of requested.
-
getRequested
A list of full type names of requested contexts.
repeated string requested = 2;
- Specified by:
getRequested
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The requested at the given index.
-
getRequestedBytes
public com.google.protobuf.ByteString getRequestedBytes(int index) A list of full type names of requested contexts.
repeated string requested = 2;
- Specified by:
getRequestedBytes
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the requested at the given index.
-
setRequested
A list of full type names of requested contexts.
repeated string requested = 2;
- Parameters:
index
- The index to set the value at.value
- The requested to set.- Returns:
- This builder for chaining.
-
addRequested
A list of full type names of requested contexts.
repeated string requested = 2;
- Parameters:
value
- The requested to add.- Returns:
- This builder for chaining.
-
addAllRequested
A list of full type names of requested contexts.
repeated string requested = 2;
- Parameters:
values
- The requested to add.- Returns:
- This builder for chaining.
-
clearRequested
A list of full type names of requested contexts.
repeated string requested = 2;
- Returns:
- This builder for chaining.
-
addRequestedBytes
A list of full type names of requested contexts.
repeated string requested = 2;
- Parameters:
value
- The bytes of the requested to add.- Returns:
- This builder for chaining.
-
getProvidedList
public com.google.protobuf.ProtocolStringList getProvidedList()A list of full type names of provided contexts.
repeated string provided = 3;
- Specified by:
getProvidedList
in interfaceContextRuleOrBuilder
- Returns:
- A list containing the provided.
-
getProvidedCount
public int getProvidedCount()A list of full type names of provided contexts.
repeated string provided = 3;
- Specified by:
getProvidedCount
in interfaceContextRuleOrBuilder
- Returns:
- The count of provided.
-
getProvided
A list of full type names of provided contexts.
repeated string provided = 3;
- Specified by:
getProvided
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The provided at the given index.
-
getProvidedBytes
public com.google.protobuf.ByteString getProvidedBytes(int index) A list of full type names of provided contexts.
repeated string provided = 3;
- Specified by:
getProvidedBytes
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the provided at the given index.
-
setProvided
A list of full type names of provided contexts.
repeated string provided = 3;
- Parameters:
index
- The index to set the value at.value
- The provided to set.- Returns:
- This builder for chaining.
-
addProvided
A list of full type names of provided contexts.
repeated string provided = 3;
- Parameters:
value
- The provided to add.- Returns:
- This builder for chaining.
-
addAllProvided
A list of full type names of provided contexts.
repeated string provided = 3;
- Parameters:
values
- The provided to add.- Returns:
- This builder for chaining.
-
clearProvided
A list of full type names of provided contexts.
repeated string provided = 3;
- Returns:
- This builder for chaining.
-
addProvidedBytes
A list of full type names of provided contexts.
repeated string provided = 3;
- Parameters:
value
- The bytes of the provided to add.- Returns:
- This builder for chaining.
-
getAllowedRequestExtensionsList
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;
- Specified by:
getAllowedRequestExtensionsList
in interfaceContextRuleOrBuilder
- Returns:
- A list containing the allowedRequestExtensions.
-
getAllowedRequestExtensionsCount
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;
- Specified by:
getAllowedRequestExtensionsCount
in interfaceContextRuleOrBuilder
- Returns:
- The count of allowedRequestExtensions.
-
getAllowedRequestExtensions
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;
- Specified by:
getAllowedRequestExtensions
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The allowedRequestExtensions at the given index.
-
getAllowedRequestExtensionsBytes
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;
- Specified by:
getAllowedRequestExtensionsBytes
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the allowedRequestExtensions at the given index.
-
setAllowedRequestExtensions
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;
- Parameters:
index
- The index to set the value at.value
- The allowedRequestExtensions to set.- Returns:
- This builder for chaining.
-
addAllowedRequestExtensions
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;
- Parameters:
value
- The allowedRequestExtensions to add.- Returns:
- This builder for chaining.
-
addAllAllowedRequestExtensions
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;
- Parameters:
values
- The allowedRequestExtensions to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
addAllowedRequestExtensionsBytes
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;
- Parameters:
value
- The bytes of the allowedRequestExtensions to add.- Returns:
- This builder for chaining.
-
getAllowedResponseExtensionsList
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;
- Specified by:
getAllowedResponseExtensionsList
in interfaceContextRuleOrBuilder
- Returns:
- A list containing the allowedResponseExtensions.
-
getAllowedResponseExtensionsCount
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;
- Specified by:
getAllowedResponseExtensionsCount
in interfaceContextRuleOrBuilder
- Returns:
- The count of allowedResponseExtensions.
-
getAllowedResponseExtensions
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;
- Specified by:
getAllowedResponseExtensions
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The allowedResponseExtensions at the given index.
-
getAllowedResponseExtensionsBytes
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;
- Specified by:
getAllowedResponseExtensionsBytes
in interfaceContextRuleOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the allowedResponseExtensions at the given index.
-
setAllowedResponseExtensions
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;
- Parameters:
index
- The index to set the value at.value
- The allowedResponseExtensions to set.- Returns:
- This builder for chaining.
-
addAllowedResponseExtensions
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;
- Parameters:
value
- The allowedResponseExtensions to add.- Returns:
- This builder for chaining.
-
addAllAllowedResponseExtensions
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;
- Parameters:
values
- The allowedResponseExtensions to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
addAllowedResponseExtensionsBytes
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;
- Parameters:
value
- The bytes of the allowedResponseExtensions to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ContextRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-
mergeUnknownFields
public final ContextRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
-