Class ConfigSource.Builder (3.1.2)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.servicemanagement.v1.ConfigFile>
Returns
TypeDescription
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
NameDescription
valueConfigFile
Returns
TypeDescription
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
NameDescription
builderForValueConfigFile.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConfigFile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConfigFile.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConfigFile.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConfigSource build()
Returns
TypeDescription
ConfigSource

buildPartial()

public ConfigSource buildPartial()
Returns
TypeDescription
ConfigSource

clear()

public ConfigSource.Builder clear()
Returns
TypeDescription
ConfigSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConfigSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConfigSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ConfigSource getDefaultInstanceForType()
Returns
TypeDescription
ConfigSource

getDescriptorForType()

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

The bytes for id.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConfigSource other)

public ConfigSource.Builder mergeFrom(ConfigSource other)
Parameter
NameDescription
otherConfigSource
Returns
TypeDescription
ConfigSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ConfigSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueConfigFile
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConfigFile.Builder
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

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

The bytes for id to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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