Package s2.v1alpha

Class AccessTokenScope.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, AccessTokenScopeOrBuilder
    Enclosing class:
    AccessTokenScope

    public static final class AccessTokenScope.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<AccessTokenScope.Builder>
    implements AccessTokenScopeOrBuilder
     Access token scope.
     
    Protobuf type s2.v1alpha.AccessTokenScope
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AccessTokenScope.Builder>
      • clear

        public AccessTokenScope.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.GeneratedMessage.Builder<AccessTokenScope.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<AccessTokenScope.Builder>
      • getDefaultInstanceForType

        public AccessTokenScope getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public AccessTokenScope.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<AccessTokenScope.Builder>
      • isInitialized

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

        public AccessTokenScope.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<AccessTokenScope.Builder>
        Throws:
        java.io.IOException
      • hasBasins

        public boolean hasBasins()
         Basin names allowed.
         
        .s2.v1alpha.ResourceSet basins = 1;
        Specified by:
        hasBasins in interface AccessTokenScopeOrBuilder
        Returns:
        Whether the basins field is set.
      • getBasinsBuilder

        public ResourceSet.Builder getBasinsBuilder()
         Basin names allowed.
         
        .s2.v1alpha.ResourceSet basins = 1;
      • hasStreams

        public boolean hasStreams()
         Stream names allowed.
         
        .s2.v1alpha.ResourceSet streams = 2;
        Specified by:
        hasStreams in interface AccessTokenScopeOrBuilder
        Returns:
        Whether the streams field is set.
      • clearStreams

        public AccessTokenScope.Builder clearStreams()
         Stream names allowed.
         
        .s2.v1alpha.ResourceSet streams = 2;
      • getStreamsBuilder

        public ResourceSet.Builder getStreamsBuilder()
         Stream names allowed.
         
        .s2.v1alpha.ResourceSet streams = 2;
      • hasAccessTokens

        public boolean hasAccessTokens()
         Token IDs allowed.
         
        .s2.v1alpha.ResourceSet access_tokens = 3;
        Specified by:
        hasAccessTokens in interface AccessTokenScopeOrBuilder
        Returns:
        Whether the accessTokens field is set.
      • clearAccessTokens

        public AccessTokenScope.Builder clearAccessTokens()
         Token IDs allowed.
         
        .s2.v1alpha.ResourceSet access_tokens = 3;
      • getAccessTokensBuilder

        public ResourceSet.Builder getAccessTokensBuilder()
         Token IDs allowed.
         
        .s2.v1alpha.ResourceSet access_tokens = 3;
      • hasOpGroups

        public boolean hasOpGroups()
         Access permissions at operation group level.
         
        .s2.v1alpha.PermittedOperationGroups op_groups = 4;
        Specified by:
        hasOpGroups in interface AccessTokenScopeOrBuilder
        Returns:
        Whether the opGroups field is set.
      • clearOpGroups

        public AccessTokenScope.Builder clearOpGroups()
         Access permissions at operation group level.
         
        .s2.v1alpha.PermittedOperationGroups op_groups = 4;
      • getOpGroupsBuilder

        public PermittedOperationGroups.Builder getOpGroupsBuilder()
         Access permissions at operation group level.
         
        .s2.v1alpha.PermittedOperationGroups op_groups = 4;
      • getOpsList

        public java.util.List<Operation> getOpsList()
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Specified by:
        getOpsList in interface AccessTokenScopeOrBuilder
        Returns:
        A list containing the ops.
      • getOpsCount

        public int getOpsCount()
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Specified by:
        getOpsCount in interface AccessTokenScopeOrBuilder
        Returns:
        The count of ops.
      • getOps

        public Operation getOps​(int index)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Specified by:
        getOps in interface AccessTokenScopeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ops at the given index.
      • setOps

        public AccessTokenScope.Builder setOps​(int index,
                                               Operation value)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Parameters:
        index - The index to set the value at.
        value - The ops to set.
        Returns:
        This builder for chaining.
      • addOps

        public AccessTokenScope.Builder addOps​(Operation value)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Parameters:
        value - The ops to add.
        Returns:
        This builder for chaining.
      • addAllOps

        public AccessTokenScope.Builder addAllOps​(java.lang.Iterable<? extends Operation> values)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Parameters:
        values - The ops to add.
        Returns:
        This builder for chaining.
      • clearOps

        public AccessTokenScope.Builder clearOps()
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Returns:
        This builder for chaining.
      • getOpsValueList

        public java.util.List<java.lang.Integer> getOpsValueList()
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Specified by:
        getOpsValueList in interface AccessTokenScopeOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for ops.
      • getOpsValue

        public int getOpsValue​(int index)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Specified by:
        getOpsValue in interface AccessTokenScopeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of ops at the given index.
      • setOpsValue

        public AccessTokenScope.Builder setOpsValue​(int index,
                                                    int value)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for ops to set.
        Returns:
        This builder for chaining.
      • addOpsValue

        public AccessTokenScope.Builder addOpsValue​(int value)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Parameters:
        value - The enum numeric value on the wire for ops to add.
        Returns:
        This builder for chaining.
      • addAllOpsValue

        public AccessTokenScope.Builder addAllOpsValue​(java.lang.Iterable<java.lang.Integer> values)
         Operations allowed for the token.
         A union of allowed operations and groups is used as an effective set of allowed operations.
         
        repeated .s2.v1alpha.Operation ops = 5;
        Parameters:
        values - The enum numeric values on the wire for ops to add.
        Returns:
        This builder for chaining.