Class 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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        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.GeneratedMessageV3.Builder<ContextRule.Builder>
      • getDefaultInstanceForType

        public ContextRule getDefaultInstanceForType()
        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,
                                            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,
                                                    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,
                                                    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.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 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:
        IOException
      • getSelector

        public 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​(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.
         
        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.
         
        repeated string requested = 2;
        Specified by:
        getRequestedCount in interface ContextRuleOrBuilder
        Returns:
        The count of requested.
      • getRequested

        public String getRequested​(int index)
         A list of full type names of requested contexts.
         
        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.
         
        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,
                                                String value)
         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

        public ContextRule.Builder addRequested​(String value)
         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

        public ContextRule.Builder addAllRequested​(Iterable<String> values)
         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

        public ContextRule.Builder clearRequested()
         A list of full type names of requested contexts.
         
        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.
         
        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 interface ContextRuleOrBuilder
        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 interface ContextRuleOrBuilder
        Returns:
        The count of provided.
      • getProvided

        public String getProvided​(int index)
         A list of full type names of provided contexts.
         
        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.
         
        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,
                                               String value)
         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

        public ContextRule.Builder addProvided​(String value)
         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

        public ContextRule.Builder addAllProvided​(Iterable<String> values)
         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

        public ContextRule.Builder clearProvided()
         A list of full type names of provided contexts.
         
        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.
         
        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 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,
                                                               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​(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​(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;
        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 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,
                                                                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​(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​(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;
        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>