Class ConfigSource.Builder (3.40.0)

public static final class ConfigSource.Builder extends GeneratedMessageV3.Builder<ConfigSource.Builder> implements ConfigSourceOrBuilder

Represents a source file which is used to generate the service configuration defined by google.api.Service.

Protobuf type google.api.servicemanagement.v1.ConfigSource

Static Methods

getDescriptor()

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

Methods

addAllFiles(Iterable<? extends ConfigFile> values)

public ConfigSource.Builder addAllFiles(Iterable<? extends ConfigFile> values)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
values Iterable<? extends com.google.api.servicemanagement.v1.ConfigFile>
Returns
Type Description
ConfigSource.Builder

addFiles(ConfigFile value)

public ConfigSource.Builder addFiles(ConfigFile value)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
value ConfigFile
Returns
Type Description
ConfigSource.Builder

addFiles(ConfigFile.Builder builderForValue)

public ConfigSource.Builder addFiles(ConfigFile.Builder builderForValue)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
builderForValue ConfigFile.Builder
Returns
Type Description
ConfigSource.Builder

addFiles(int index, ConfigFile value)

public ConfigSource.Builder addFiles(int index, ConfigFile value)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameters
Name Description
index int
value ConfigFile
Returns
Type Description
ConfigSource.Builder

addFiles(int index, ConfigFile.Builder builderForValue)

public ConfigSource.Builder addFiles(int index, ConfigFile.Builder builderForValue)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameters
Name Description
index int
builderForValue ConfigFile.Builder
Returns
Type Description
ConfigSource.Builder

addFilesBuilder()

public ConfigFile.Builder addFilesBuilder()

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Returns
Type Description
ConfigFile.Builder

addFilesBuilder(int index)

public ConfigFile.Builder addFilesBuilder(int index)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
index int
Returns
Type Description
ConfigFile.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConfigSource build()
Returns
Type Description
ConfigSource

buildPartial()

public ConfigSource buildPartial()
Returns
Type Description
ConfigSource

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFiles()

public ConfigSource.Builder clearFiles()

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Returns
Type Description
ConfigSource.Builder

clearId()

public ConfigSource.Builder clearId()

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead.

string id = 5;

Returns
Type Description
ConfigSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ConfigSource getDefaultInstanceForType()
Returns
Type Description
ConfigSource

getDescriptorForType()

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

getFiles(int index)

public ConfigFile getFiles(int index)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
index int
Returns
Type Description
ConfigFile

getFilesBuilder(int index)

public ConfigFile.Builder getFilesBuilder(int index)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
index int
Returns
Type Description
ConfigFile.Builder

getFilesBuilderList()

public List<ConfigFile.Builder> getFilesBuilderList()

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Returns
Type Description
List<Builder>

getFilesCount()

public int getFilesCount()

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Returns
Type Description
int

getFilesList()

public List<ConfigFile> getFilesList()

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Returns
Type Description
List<ConfigFile>

getFilesOrBuilder(int index)

public ConfigFileOrBuilder getFilesOrBuilder(int index)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
index int
Returns
Type Description
ConfigFileOrBuilder

getFilesOrBuilderList()

public List<? extends ConfigFileOrBuilder> getFilesOrBuilderList()

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Returns
Type Description
List<? extends com.google.api.servicemanagement.v1.ConfigFileOrBuilder>

getId()

public String getId()

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead.

string id = 5;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead.

string id = 5;

Returns
Type Description
ByteString

The bytes for id.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConfigSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFiles(int index)

public ConfigSource.Builder removeFiles(int index)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameter
Name Description
index int
Returns
Type Description
ConfigSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFiles(int index, ConfigFile value)

public ConfigSource.Builder setFiles(int index, ConfigFile value)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameters
Name Description
index int
value ConfigFile
Returns
Type Description
ConfigSource.Builder

setFiles(int index, ConfigFile.Builder builderForValue)

public ConfigSource.Builder setFiles(int index, ConfigFile.Builder builderForValue)

Set of source configuration files that are used to generate a service configuration (google.api.Service).

repeated .google.api.servicemanagement.v1.ConfigFile files = 2;

Parameters
Name Description
index int
builderForValue ConfigFile.Builder
Returns
Type Description
ConfigSource.Builder

setId(String value)

public ConfigSource.Builder setId(String value)

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead.

string id = 5;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
ConfigSource.Builder

This builder for chaining.

setIdBytes(ByteString value)

public ConfigSource.Builder setIdBytes(ByteString value)

A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead.

string id = 5;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
ConfigSource.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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