Class SelectiveGapicGeneration.Builder

  • All Implemented Interfaces:
    SelectiveGapicGenerationOrBuilder, 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:
    SelectiveGapicGeneration

    public static final class SelectiveGapicGeneration.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SelectiveGapicGeneration.Builder>
    implements SelectiveGapicGenerationOrBuilder
     This message is used to configure the generation of a subset of the RPCs in
     a service for client libraries.
     
    Protobuf type google.api.SelectiveGapicGeneration
    • 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<SelectiveGapicGeneration.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<SelectiveGapicGeneration.Builder>
      • getDefaultInstanceForType

        public SelectiveGapicGeneration 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 SelectiveGapicGeneration build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

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

        public SelectiveGapicGeneration.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<SelectiveGapicGeneration.Builder>
      • setRepeatedField

        public SelectiveGapicGeneration.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<SelectiveGapicGeneration.Builder>
      • addRepeatedField

        public SelectiveGapicGeneration.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<SelectiveGapicGeneration.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,​SelectiveGapicGeneration.Builder>
      • mergeFrom

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

        public com.google.protobuf.ProtocolStringList getMethodsList()
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Specified by:
        getMethodsList in interface SelectiveGapicGenerationOrBuilder
        Returns:
        A list containing the methods.
      • getMethodsCount

        public int getMethodsCount()
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Specified by:
        getMethodsCount in interface SelectiveGapicGenerationOrBuilder
        Returns:
        The count of methods.
      • getMethods

        public java.lang.String getMethods​(int index)
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Specified by:
        getMethods in interface SelectiveGapicGenerationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The methods at the given index.
      • getMethodsBytes

        public com.google.protobuf.ByteString getMethodsBytes​(int index)
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Specified by:
        getMethodsBytes in interface SelectiveGapicGenerationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the methods at the given index.
      • setMethods

        public SelectiveGapicGeneration.Builder setMethods​(int index,
                                                           java.lang.String value)
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Parameters:
        index - The index to set the value at.
        value - The methods to set.
        Returns:
        This builder for chaining.
      • addMethods

        public SelectiveGapicGeneration.Builder addMethods​(java.lang.String value)
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Parameters:
        value - The methods to add.
        Returns:
        This builder for chaining.
      • addAllMethods

        public SelectiveGapicGeneration.Builder addAllMethods​(java.lang.Iterable<java.lang.String> values)
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Parameters:
        values - The methods to add.
        Returns:
        This builder for chaining.
      • clearMethods

        public SelectiveGapicGeneration.Builder clearMethods()
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Returns:
        This builder for chaining.
      • addMethodsBytes

        public SelectiveGapicGeneration.Builder addMethodsBytes​(com.google.protobuf.ByteString value)
         An allowlist of the fully qualified names of RPCs that should be included
         on public client surfaces.
         
        repeated string methods = 1;
        Parameters:
        value - The bytes of the methods to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SelectiveGapicGeneration.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<SelectiveGapicGeneration.Builder>
      • mergeUnknownFields

        public final SelectiveGapicGeneration.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<SelectiveGapicGeneration.Builder>