Class CommonLanguageSettings.Builder (2.12.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.ClientLibraryDestination>

The destinations to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueClientLibraryDestination

The destinations to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
CommonLanguageSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommonLanguageSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides

build()

public CommonLanguageSettings build()
Returns
TypeDescription
CommonLanguageSettings

buildPartial()

public CommonLanguageSettings buildPartial()
Returns
TypeDescription
CommonLanguageSettings

clear()

public CommonLanguageSettings.Builder clear()
Returns
TypeDescription
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
TypeDescription
CommonLanguageSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CommonLanguageSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommonLanguageSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides

clearReferenceDocsUri()

public CommonLanguageSettings.Builder clearReferenceDocsUri()

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

string reference_docs_uri = 1;

Returns
TypeDescription
CommonLanguageSettings.Builder

This builder for chaining.

clone()

public CommonLanguageSettings.Builder clone()
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides

getDefaultInstanceForType()

public CommonLanguageSettings getDefaultInstanceForType()
Returns
TypeDescription
CommonLanguageSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
List<Integer>

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

getReferenceDocsUri()

public String getReferenceDocsUri()

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

string reference_docs_uri = 1;

Returns
TypeDescription
String

The referenceDocsUri.

getReferenceDocsUriBytes()

public ByteString getReferenceDocsUriBytes()

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

string reference_docs_uri = 1;

Returns
TypeDescription
ByteString

The bytes for referenceDocsUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CommonLanguageSettings other)

public CommonLanguageSettings.Builder mergeFrom(CommonLanguageSettings other)
Parameter
NameDescription
otherCommonLanguageSettings
Returns
TypeDescription
CommonLanguageSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommonLanguageSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CommonLanguageSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommonLanguageSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueClientLibraryDestination

The destinations to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
CommonLanguageSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CommonLanguageSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides

setReferenceDocsUri(String value)

public CommonLanguageSettings.Builder setReferenceDocsUri(String value)

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

string reference_docs_uri = 1;

Parameter
NameDescription
valueString

The referenceDocsUri to set.

Returns
TypeDescription
CommonLanguageSettings.Builder

This builder for chaining.

setReferenceDocsUriBytes(ByteString value)

public CommonLanguageSettings.Builder setReferenceDocsUriBytes(ByteString value)

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

string reference_docs_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for referenceDocsUri to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CommonLanguageSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommonLanguageSettings.Builder
Overrides