Class ConfigRef.Builder (3.21.0)

public static final class ConfigRef.Builder extends GeneratedMessageV3.Builder<ConfigRef.Builder> implements ConfigRefOrBuilder

Represents a service configuration with its name and id.

Protobuf type google.api.servicemanagement.v1.ConfigRef

Implements

ConfigRefOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConfigRef build()
Returns
TypeDescription
ConfigRef

buildPartial()

public ConfigRef buildPartial()
Returns
TypeDescription
ConfigRef

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ConfigRef.Builder clearName()

Resource name of a service config. It must have the following format: "services/{service name}/configs/{config id}".

string name = 1;

Returns
TypeDescription
ConfigRef.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ConfigRef getDefaultInstanceForType()
Returns
TypeDescription
ConfigRef

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Resource name of a service config. It must have the following format: "services/{service name}/configs/{config id}".

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of a service config. It must have the following format: "services/{service name}/configs/{config id}".

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConfigRef other)

public ConfigRef.Builder mergeFrom(ConfigRef other)
Parameter
NameDescription
otherConfigRef
Returns
TypeDescription
ConfigRef.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConfigRef.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConfigRef.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ConfigRef.Builder setName(String value)

Resource name of a service config. It must have the following format: "services/{service name}/configs/{config id}".

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ConfigRef.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConfigRef.Builder setNameBytes(ByteString value)

Resource name of a service config. It must have the following format: "services/{service name}/configs/{config id}".

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ConfigRef.Builder

This builder for chaining.

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

public ConfigRef.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConfigRef.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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