Class SelectiveGapicGeneration.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<SelectiveGapicGeneration,SelectiveGapicGeneration.Builder>
com.google.api.SelectiveGapicGeneration.Builder
All Implemented Interfaces:
SelectiveGapicGenerationOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
SelectiveGapicGeneration

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

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • 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.
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    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.
    An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
    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.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getMethodsList

      public List<String> getMethodsList()
       An allowlist of the fully qualified names of RPCs that should be included
       on public client surfaces.
       
      repeated string methods = 1 [json_name = "methods"];
      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 [json_name = "methods"];
      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 [json_name = "methods"];
      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 [json_name = "methods"];
      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 [json_name = "methods"];
      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 [json_name = "methods"];
      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 [json_name = "methods"];
      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 [json_name = "methods"];
      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 [json_name = "methods"];
      Parameters:
      value - The bytes of the methods to add.
      Returns:
      This builder for chaining.