Class SelectiveGapicGeneration.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SelectiveGapicGeneration.Builder>
com.google.api.SelectiveGapicGeneration.Builder
All Implemented Interfaces:
SelectiveGapicGenerationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SelectiveGapicGeneration

public static final class SelectiveGapicGeneration.Builder extends com.google.protobuf.GeneratedMessage.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 Summary

    Modifier and Type
    Method
    Description
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    addMethodsBytes(com.google.protobuf.ByteString value)
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
     
     
     
    Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users.
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users.
    getMethods(int index)
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    com.google.protobuf.ByteString
    getMethodsBytes(int index)
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    int
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    com.google.protobuf.ProtocolStringList
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users.
    setMethods(int index, String value)
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.

    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 Details

    • 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<SelectiveGapicGeneration.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<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.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
    • mergeFrom

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

    • isInitialized

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

      public SelectiveGapicGeneration.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<SelectiveGapicGeneration.Builder>
      Throws:
      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 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, 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(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(Iterable<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.
    • getGenerateOmittedAsInternal

      public boolean getGenerateOmittedAsInternal()
       Setting this to true indicates to the client generators that methods
       that would be excluded from the generation should instead be generated
       in a way that indicates these methods should not be consumed by
       end users. How this is expressed is up to individual language
       implementations to decide. Some examples may be: added annotations,
       obfuscated identifiers, or other language idiomatic patterns.
       
      bool generate_omitted_as_internal = 2;
      Specified by:
      getGenerateOmittedAsInternal in interface SelectiveGapicGenerationOrBuilder
      Returns:
      The generateOmittedAsInternal.
    • setGenerateOmittedAsInternal

      public SelectiveGapicGeneration.Builder setGenerateOmittedAsInternal(boolean value)
       Setting this to true indicates to the client generators that methods
       that would be excluded from the generation should instead be generated
       in a way that indicates these methods should not be consumed by
       end users. How this is expressed is up to individual language
       implementations to decide. Some examples may be: added annotations,
       obfuscated identifiers, or other language idiomatic patterns.
       
      bool generate_omitted_as_internal = 2;
      Parameters:
      value - The generateOmittedAsInternal to set.
      Returns:
      This builder for chaining.
    • clearGenerateOmittedAsInternal

      public SelectiveGapicGeneration.Builder clearGenerateOmittedAsInternal()
       Setting this to true indicates to the client generators that methods
       that would be excluded from the generation should instead be generated
       in a way that indicates these methods should not be consumed by
       end users. How this is expressed is up to individual language
       implementations to decide. Some examples may be: added annotations,
       obfuscated identifiers, or other language idiomatic patterns.
       
      bool generate_omitted_as_internal = 2;
      Returns:
      This builder for chaining.