Class SubmitConfigSourceRequest.Builder (3.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubmitConfigSourceRequest build()
Returns
TypeDescription
SubmitConfigSourceRequest

buildPartial()

public SubmitConfigSourceRequest buildPartial()
Returns
TypeDescription
SubmitConfigSourceRequest

clear()

public SubmitConfigSourceRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
SubmitConfigSourceRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SubmitConfigSourceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SubmitConfigSourceRequest.Builder

This builder for chaining.

clone()

public SubmitConfigSourceRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ConfigSourceOrBuilder

getDefaultInstanceForType()

public SubmitConfigSourceRequest getDefaultInstanceForType()
Returns
TypeDescription
SubmitConfigSourceRequest

getDescriptorForType()

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

Whether the configSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConfigSource
Returns
TypeDescription
SubmitConfigSourceRequest.Builder

mergeFrom(SubmitConfigSourceRequest other)

public SubmitConfigSourceRequest.Builder mergeFrom(SubmitConfigSourceRequest other)
Parameter
NameDescription
otherSubmitConfigSourceRequest
Returns
TypeDescription
SubmitConfigSourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SubmitConfigSourceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceName to set.

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

The bytes for serviceName to set.

Returns
TypeDescription
SubmitConfigSourceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SubmitConfigSourceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
SubmitConfigSourceRequest.Builder

This builder for chaining.