Class SubmitConfigSourceRequest.Builder (3.50.0)

public static final class SubmitConfigSourceRequest.Builder extends GeneratedMessageV3.Builder<SubmitConfigSourceRequest.Builder> implements SubmitConfigSourceRequestOrBuilder

Request message for SubmitConfigSource method.

Protobuf type google.api.servicemanagement.v1.SubmitConfigSourceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubmitConfigSourceRequest build()
Returns
Type Description
SubmitConfigSourceRequest

buildPartial()

public SubmitConfigSourceRequest buildPartial()
Returns
Type Description
SubmitConfigSourceRequest

clear()

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

clearConfigSource()

public SubmitConfigSourceRequest.Builder clearConfigSource()

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubmitConfigSourceRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceName()

public SubmitConfigSourceRequest.Builder clearServiceName()

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubmitConfigSourceRequest.Builder

This builder for chaining.

clearValidateOnly()

public SubmitConfigSourceRequest.Builder clearValidateOnly()

Optional. If set, this will result in the generation of a google.api.Service configuration based on the ConfigSource provided, but the generated config and the sources will NOT be persisted.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubmitConfigSourceRequest.Builder

This builder for chaining.

clone()

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

getConfigSource()

public ConfigSource getConfigSource()

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConfigSource

The configSource.

getConfigSourceBuilder()

public ConfigSource.Builder getConfigSourceBuilder()

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConfigSource.Builder

getConfigSourceOrBuilder()

public ConfigSourceOrBuilder getConfigSourceOrBuilder()

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConfigSourceOrBuilder

getDefaultInstanceForType()

public SubmitConfigSourceRequest getDefaultInstanceForType()
Returns
Type Description
SubmitConfigSourceRequest

getDescriptorForType()

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

getServiceName()

public String getServiceName()

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for serviceName.

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, this will result in the generation of a google.api.Service configuration based on the ConfigSource provided, but the generated config and the sources will NOT be persisted.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasConfigSource()

public boolean hasConfigSource()

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the configSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfigSource(ConfigSource value)

public SubmitConfigSourceRequest.Builder mergeConfigSource(ConfigSource value)

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConfigSource
Returns
Type Description
SubmitConfigSourceRequest.Builder

mergeFrom(SubmitConfigSourceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfigSource(ConfigSource value)

public SubmitConfigSourceRequest.Builder setConfigSource(ConfigSource value)

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConfigSource
Returns
Type Description
SubmitConfigSourceRequest.Builder

setConfigSource(ConfigSource.Builder builderForValue)

public SubmitConfigSourceRequest.Builder setConfigSource(ConfigSource.Builder builderForValue)

Required. The source configuration for the service.

.google.api.servicemanagement.v1.ConfigSource config_source = 2 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceName(String value)

public SubmitConfigSourceRequest.Builder setServiceName(String value)

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
SubmitConfigSourceRequest.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public SubmitConfigSourceRequest.Builder setServiceNameBytes(ByteString value)

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
SubmitConfigSourceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public SubmitConfigSourceRequest.Builder setValidateOnly(boolean value)

Optional. If set, this will result in the generation of a google.api.Service configuration based on the ConfigSource provided, but the generated config and the sources will NOT be persisted.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
SubmitConfigSourceRequest.Builder

This builder for chaining.