Class CommonLanguageSettings.Builder (2.39.1)

public static final class CommonLanguageSettings.Builder extends GeneratedMessageV3.Builder<CommonLanguageSettings.Builder> implements CommonLanguageSettingsOrBuilder

Required information for every language.

Protobuf type google.api.CommonLanguageSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDestinations(Iterable<? extends ClientLibraryDestination> values)

public CommonLanguageSettings.Builder addAllDestinations(Iterable<? extends ClientLibraryDestination> values)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameter
Name Description
values Iterable<? extends com.google.api.ClientLibraryDestination>

The destinations to add.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

addAllDestinationsValue(Iterable<Integer> values)

public CommonLanguageSettings.Builder addAllDestinationsValue(Iterable<Integer> values)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for destinations to add.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

addDestinations(ClientLibraryDestination value)

public CommonLanguageSettings.Builder addDestinations(ClientLibraryDestination value)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameter
Name Description
value ClientLibraryDestination

The destinations to add.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

addDestinationsValue(int value)

public CommonLanguageSettings.Builder addDestinationsValue(int value)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for destinations to add.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommonLanguageSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

build()

public CommonLanguageSettings build()
Returns
Type Description
CommonLanguageSettings

buildPartial()

public CommonLanguageSettings buildPartial()
Returns
Type Description
CommonLanguageSettings

clear()

public CommonLanguageSettings.Builder clear()
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

clearDestinations()

public CommonLanguageSettings.Builder clearDestinations()

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CommonLanguageSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommonLanguageSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

clearReferenceDocsUri() (deprecated)

public CommonLanguageSettings.Builder clearReferenceDocsUri()

Deprecated. google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See google/api/client.proto;l=122

Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest

string reference_docs_uri = 1 [deprecated = true];

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

clone()

public CommonLanguageSettings.Builder clone()
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

getDefaultInstanceForType()

public CommonLanguageSettings getDefaultInstanceForType()
Returns
Type Description
CommonLanguageSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinations(int index)

public ClientLibraryDestination getDestinations(int index)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ClientLibraryDestination

The destinations at the given index.

getDestinationsCount()

public int getDestinationsCount()

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Returns
Type Description
int

The count of destinations.

getDestinationsList()

public List<ClientLibraryDestination> getDestinationsList()

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Returns
Type Description
List<ClientLibraryDestination>

A list containing the destinations.

getDestinationsValue(int index)

public int getDestinationsValue(int index)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of destinations at the given index.

getDestinationsValueList()

public List<Integer> getDestinationsValueList()

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for destinations.

getReferenceDocsUri() (deprecated)

public String getReferenceDocsUri()

Deprecated. google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See google/api/client.proto;l=122

Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest

string reference_docs_uri = 1 [deprecated = true];

Returns
Type Description
String

The referenceDocsUri.

getReferenceDocsUriBytes() (deprecated)

public ByteString getReferenceDocsUriBytes()

Deprecated. google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See google/api/client.proto;l=122

Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest

string reference_docs_uri = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for referenceDocsUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CommonLanguageSettings other)

public CommonLanguageSettings.Builder mergeFrom(CommonLanguageSettings other)
Parameter
Name Description
other CommonLanguageSettings
Returns
Type Description
CommonLanguageSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommonLanguageSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommonLanguageSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CommonLanguageSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommonLanguageSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

setDestinations(int index, ClientLibraryDestination value)

public CommonLanguageSettings.Builder setDestinations(int index, ClientLibraryDestination value)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameters
Name Description
index int

The index to set the value at.

value ClientLibraryDestination

The destinations to set.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

setDestinationsValue(int index, int value)

public CommonLanguageSettings.Builder setDestinationsValue(int index, int value)

The destination where API teams want this client library to be published.

repeated .google.api.ClientLibraryDestination destinations = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for destinations to set.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CommonLanguageSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

setReferenceDocsUri(String value) (deprecated)

public CommonLanguageSettings.Builder setReferenceDocsUri(String value)

Deprecated. google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See google/api/client.proto;l=122

Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest

string reference_docs_uri = 1 [deprecated = true];

Parameter
Name Description
value String

The referenceDocsUri to set.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

setReferenceDocsUriBytes(ByteString value) (deprecated)

public CommonLanguageSettings.Builder setReferenceDocsUriBytes(ByteString value)

Deprecated. google.api.CommonLanguageSettings.reference_docs_uri is deprecated. See google/api/client.proto;l=122

Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest

string reference_docs_uri = 1 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for referenceDocsUri to set.

Returns
Type Description
CommonLanguageSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CommonLanguageSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CommonLanguageSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CommonLanguageSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommonLanguageSettings.Builder
Overrides