Class SubmitConfigSourceRequest.Builder (3.81.0)

public static final class SubmitConfigSourceRequest.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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

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.

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.