Class ContextRule.Builder

  • All Implemented Interfaces:
    ContextRuleOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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​(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​(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​(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​(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, only the requested context will be made available to the backend.
      ContextRule.Builder addProvided​(java.lang.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, java.lang.Object value)  
      ContextRule.Builder addRequested​(java.lang.String value)
      A list of full type names of requested contexts, only the requested context will be made available to the backend.
      ContextRule.Builder addRequestedBytes​(com.google.protobuf.ByteString value)
      A list of full type names of requested contexts, only the requested context will be made available to the backend.
      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, only the requested context will be made available to the backend.
      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.
      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.
      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.
      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()  
      java.lang.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.
      java.lang.String getRequested​(int index)
      A list of full type names of requested contexts, only the requested context will be made available to the backend.
      com.google.protobuf.ByteString getRequestedBytes​(int index)
      A list of full type names of requested contexts, only the requested context will be made available to the backend.
      int getRequestedCount()
      A list of full type names of requested contexts, only the requested context will be made available to the backend.
      com.google.protobuf.ProtocolStringList getRequestedList()
      A list of full type names of requested contexts, only the requested context will be made available to the backend.
      java.lang.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​(ContextRule other)  
      ContextRule.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      ContextRule.Builder mergeFrom​(com.google.protobuf.Message other)  
      ContextRule.Builder mergeUnknownFields​(com.google.protobuf.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​(com.google.protobuf.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​(com.google.protobuf.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, only the requested context will be made available to the backend.
      ContextRule.Builder setSelector​(java.lang.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)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getParentForChildren
      • Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder

        addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • clear

        public ContextRule.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ContextRule.Builder>
      • getDefaultInstanceForType

        public ContextRule getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ContextRule build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ContextRule buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ContextRule.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • setField

        public ContextRule.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • clearField

        public ContextRule.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • clearOneof

        public ContextRule.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • setRepeatedField

        public ContextRule.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • addRepeatedField

        public ContextRule.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • mergeFrom

        public ContextRule.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContextRule.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,​ContextRule.Builder>
      • mergeFrom

        public ContextRule.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContextRule.Builder>
        Throws:
        java.io.IOException
      • getSelector

        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;
        Specified by:
        getSelector in interface ContextRuleOrBuilder
        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 interface ContextRuleOrBuilder
        Returns:
        The bytes for selector.
      • setSelector

        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;
        Parameters:
        value - The selector to set.
        Returns:
        This builder for chaining.
      • clearSelector

        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;
        Returns:
        This builder for chaining.
      • setSelectorBytes

        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;
        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, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Specified by:
        getRequestedList in interface ContextRuleOrBuilder
        Returns:
        A list containing the requested.
      • getRequestedCount

        public int getRequestedCount()
         A list of full type names of requested contexts, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Specified by:
        getRequestedCount in interface ContextRuleOrBuilder
        Returns:
        The count of requested.
      • getRequested

        public java.lang.String getRequested​(int index)
         A list of full type names of requested contexts, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Specified by:
        getRequested in interface ContextRuleOrBuilder
        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, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Specified by:
        getRequestedBytes in interface ContextRuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the requested at the given index.
      • setRequested

        public ContextRule.Builder setRequested​(int index,
                                                java.lang.String value)
         A list of full type names of requested contexts, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Parameters:
        index - The index to set the value at.
        value - The requested to set.
        Returns:
        This builder for chaining.
      • addRequested

        public ContextRule.Builder addRequested​(java.lang.String value)
         A list of full type names of requested contexts, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Parameters:
        value - The requested to add.
        Returns:
        This builder for chaining.
      • addAllRequested

        public ContextRule.Builder addAllRequested​(java.lang.Iterable<java.lang.String> values)
         A list of full type names of requested contexts, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Parameters:
        values - The requested to add.
        Returns:
        This builder for chaining.
      • clearRequested

        public ContextRule.Builder clearRequested()
         A list of full type names of requested contexts, only the requested context
         will be made available to the backend.
         
        repeated string requested = 2;
        Returns:
        This builder for chaining.
      • addRequestedBytes

        public ContextRule.Builder addRequestedBytes​(com.google.protobuf.ByteString value)
         A list of full type names of requested contexts, only the requested context
         will be made available to the backend.
         
        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. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Specified by:
        getProvidedList in interface ContextRuleOrBuilder
        Returns:
        A list containing the provided.
      • getProvidedCount

        public int getProvidedCount()
         A list of full type names of provided contexts. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Specified by:
        getProvidedCount in interface ContextRuleOrBuilder
        Returns:
        The count of provided.
      • getProvided

        public java.lang.String getProvided​(int index)
         A list of full type names of provided contexts. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Specified by:
        getProvided in interface ContextRuleOrBuilder
        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. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Specified by:
        getProvidedBytes in interface ContextRuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the provided at the given index.
      • setProvided

        public ContextRule.Builder setProvided​(int index,
                                               java.lang.String value)
         A list of full type names of provided contexts. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Parameters:
        index - The index to set the value at.
        value - The provided to set.
        Returns:
        This builder for chaining.
      • addProvided

        public ContextRule.Builder addProvided​(java.lang.String value)
         A list of full type names of provided contexts. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Parameters:
        value - The provided to add.
        Returns:
        This builder for chaining.
      • addAllProvided

        public ContextRule.Builder addAllProvided​(java.lang.Iterable<java.lang.String> values)
         A list of full type names of provided contexts. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Parameters:
        values - The provided to add.
        Returns:
        This builder for chaining.
      • clearProvided

        public ContextRule.Builder clearProvided()
         A list of full type names of provided contexts. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        repeated string provided = 3;
        Returns:
        This builder for chaining.
      • addProvidedBytes

        public ContextRule.Builder addProvidedBytes​(com.google.protobuf.ByteString value)
         A list of full type names of provided contexts. It is used to support
         propagating HTTP headers and ETags from the response extension.
         
        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 interface ContextRuleOrBuilder
        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 interface ContextRuleOrBuilder
        Returns:
        The count of allowedRequestExtensions.
      • getAllowedRequestExtensions

        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;
        Specified by:
        getAllowedRequestExtensions in interface ContextRuleOrBuilder
        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 interface ContextRuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the allowedRequestExtensions at the given index.
      • setAllowedRequestExtensions

        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;
        Parameters:
        index - The index to set the value at.
        value - The allowedRequestExtensions to set.
        Returns:
        This builder for chaining.
      • addAllowedRequestExtensions

        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;
        Parameters:
        value - The allowedRequestExtensions to add.
        Returns:
        This builder for chaining.
      • addAllAllowedRequestExtensions

        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;
        Parameters:
        values - The allowedRequestExtensions to add.
        Returns:
        This builder for chaining.
      • clearAllowedRequestExtensions

        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;
        Returns:
        This builder for chaining.
      • addAllowedRequestExtensionsBytes

        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;
        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 interface ContextRuleOrBuilder
        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 interface ContextRuleOrBuilder
        Returns:
        The count of allowedResponseExtensions.
      • getAllowedResponseExtensions

        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;
        Specified by:
        getAllowedResponseExtensions in interface ContextRuleOrBuilder
        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 interface ContextRuleOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the allowedResponseExtensions at the given index.
      • setAllowedResponseExtensions

        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;
        Parameters:
        index - The index to set the value at.
        value - The allowedResponseExtensions to set.
        Returns:
        This builder for chaining.
      • addAllowedResponseExtensions

        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;
        Parameters:
        value - The allowedResponseExtensions to add.
        Returns:
        This builder for chaining.
      • addAllAllowedResponseExtensions

        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;
        Parameters:
        values - The allowedResponseExtensions to add.
        Returns:
        This builder for chaining.
      • clearAllowedResponseExtensions

        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;
        Returns:
        This builder for chaining.
      • addAllowedResponseExtensionsBytes

        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;
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>
      • mergeUnknownFields

        public final ContextRule.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContextRule.Builder>