Package com.google.api
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 TypeMethodDescriptionaddAllMethods
(Iterable<String> values) An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.addMethods
(String value) 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.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.An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.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.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
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 interfaceSelectiveGapicGenerationOrBuilder
- 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 interfaceSelectiveGapicGenerationOrBuilder
- Returns:
- The count of methods.
-
getMethods
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 interfaceSelectiveGapicGenerationOrBuilder
- 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 interfaceSelectiveGapicGenerationOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the methods at the given index.
-
setMethods
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
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
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
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
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.
-
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 [json_name = "generateOmittedAsInternal"];
- Specified by:
getGenerateOmittedAsInternal
in interfaceSelectiveGapicGenerationOrBuilder
- Returns:
- The generateOmittedAsInternal.
-
setGenerateOmittedAsInternal
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 [json_name = "generateOmittedAsInternal"];
- Parameters:
value
- The generateOmittedAsInternal to set.- Returns:
- This builder for chaining.
-
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 [json_name = "generateOmittedAsInternal"];
- Returns:
- This builder for chaining.
-