Package s2.v1alpha

Class ResourceSet.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, ResourceSetOrBuilder
    Enclosing class:
    ResourceSet

    public static final class ResourceSet.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder>
    implements ResourceSetOrBuilder
     Set of named resources.
     
    Protobuf type s2.v1alpha.ResourceSet
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ResourceSet build()  
      ResourceSet buildPartial()  
      ResourceSet.Builder clear()  
      ResourceSet.Builder clearExact()
      Match only the resource with this exact name.
      ResourceSet.Builder clearMatching()  
      ResourceSet.Builder clearPrefix()
      Match all resources that start with this prefix.
      ResourceSet getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getExact()
      Match only the resource with this exact name.
      com.google.protobuf.ByteString getExactBytes()
      Match only the resource with this exact name.
      ResourceSet.MatchingCase getMatchingCase()  
      java.lang.String getPrefix()
      Match all resources that start with this prefix.
      com.google.protobuf.ByteString getPrefixBytes()
      Match all resources that start with this prefix.
      boolean hasExact()
      Match only the resource with this exact name.
      boolean hasPrefix()
      Match all resources that start with this prefix.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      ResourceSet.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      ResourceSet.Builder mergeFrom​(com.google.protobuf.Message other)  
      ResourceSet.Builder mergeFrom​(ResourceSet other)  
      ResourceSet.Builder setExact​(java.lang.String value)
      Match only the resource with this exact name.
      ResourceSet.Builder setExactBytes​(com.google.protobuf.ByteString value)
      Match only the resource with this exact name.
      ResourceSet.Builder setPrefix​(java.lang.String value)
      Match all resources that start with this prefix.
      ResourceSet.Builder setPrefixBytes​(com.google.protobuf.ByteString value)
      Match all resources that start with this prefix.
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ResourceSet.Builder>
      • clear

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

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

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

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

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

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

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

        public boolean hasExact()
         Match only the resource with this exact name.
         Use an empty string to match no resources.
         
        string exact = 1;
        Specified by:
        hasExact in interface ResourceSetOrBuilder
        Returns:
        Whether the exact field is set.
      • getExact

        public java.lang.String getExact()
         Match only the resource with this exact name.
         Use an empty string to match no resources.
         
        string exact = 1;
        Specified by:
        getExact in interface ResourceSetOrBuilder
        Returns:
        The exact.
      • getExactBytes

        public com.google.protobuf.ByteString getExactBytes()
         Match only the resource with this exact name.
         Use an empty string to match no resources.
         
        string exact = 1;
        Specified by:
        getExactBytes in interface ResourceSetOrBuilder
        Returns:
        The bytes for exact.
      • setExact

        public ResourceSet.Builder setExact​(java.lang.String value)
         Match only the resource with this exact name.
         Use an empty string to match no resources.
         
        string exact = 1;
        Parameters:
        value - The exact to set.
        Returns:
        This builder for chaining.
      • clearExact

        public ResourceSet.Builder clearExact()
         Match only the resource with this exact name.
         Use an empty string to match no resources.
         
        string exact = 1;
        Returns:
        This builder for chaining.
      • setExactBytes

        public ResourceSet.Builder setExactBytes​(com.google.protobuf.ByteString value)
         Match only the resource with this exact name.
         Use an empty string to match no resources.
         
        string exact = 1;
        Parameters:
        value - The bytes for exact to set.
        Returns:
        This builder for chaining.
      • hasPrefix

        public boolean hasPrefix()
         Match all resources that start with this prefix.
         Use an empty string to match all resource.
         
        string prefix = 2;
        Specified by:
        hasPrefix in interface ResourceSetOrBuilder
        Returns:
        Whether the prefix field is set.
      • getPrefix

        public java.lang.String getPrefix()
         Match all resources that start with this prefix.
         Use an empty string to match all resource.
         
        string prefix = 2;
        Specified by:
        getPrefix in interface ResourceSetOrBuilder
        Returns:
        The prefix.
      • getPrefixBytes

        public com.google.protobuf.ByteString getPrefixBytes()
         Match all resources that start with this prefix.
         Use an empty string to match all resource.
         
        string prefix = 2;
        Specified by:
        getPrefixBytes in interface ResourceSetOrBuilder
        Returns:
        The bytes for prefix.
      • setPrefix

        public ResourceSet.Builder setPrefix​(java.lang.String value)
         Match all resources that start with this prefix.
         Use an empty string to match all resource.
         
        string prefix = 2;
        Parameters:
        value - The prefix to set.
        Returns:
        This builder for chaining.
      • clearPrefix

        public ResourceSet.Builder clearPrefix()
         Match all resources that start with this prefix.
         Use an empty string to match all resource.
         
        string prefix = 2;
        Returns:
        This builder for chaining.
      • setPrefixBytes

        public ResourceSet.Builder setPrefixBytes​(com.google.protobuf.ByteString value)
         Match all resources that start with this prefix.
         Use an empty string to match all resource.
         
        string prefix = 2;
        Parameters:
        value - The bytes for prefix to set.
        Returns:
        This builder for chaining.