Class CreateApiConfigRequest.Builder (2.47.0)

public static final class CreateApiConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateApiConfigRequest.Builder> implements CreateApiConfigRequestOrBuilder

Request message for ApiGatewayService.CreateApiConfig

Protobuf type google.cloud.apigateway.v1.CreateApiConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateApiConfigRequest build()
Returns
Type Description
CreateApiConfigRequest

buildPartial()

public CreateApiConfigRequest buildPartial()
Returns
Type Description
CreateApiConfigRequest

clear()

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

clearApiConfig()

public CreateApiConfigRequest.Builder clearApiConfig()

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateApiConfigRequest.Builder

clearApiConfigId()

public CreateApiConfigRequest.Builder clearApiConfigId()

Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource.

string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateApiConfigRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateApiConfigRequest.Builder clearParent()

Required. Parent resource of the API Config, of the form: projects/*/locations/global/apis/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateApiConfigRequest.Builder

This builder for chaining.

clone()

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

getApiConfig()

public ApiConfig getApiConfig()

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiConfig

The apiConfig.

getApiConfigBuilder()

public ApiConfig.Builder getApiConfigBuilder()

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiConfig.Builder

getApiConfigId()

public String getApiConfigId()

Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource.

string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The apiConfigId.

getApiConfigIdBytes()

public ByteString getApiConfigIdBytes()

Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource.

string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for apiConfigId.

getApiConfigOrBuilder()

public ApiConfigOrBuilder getApiConfigOrBuilder()

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiConfigOrBuilder

getDefaultInstanceForType()

public CreateApiConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateApiConfigRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Parent resource of the API Config, of the form: projects/*/locations/global/apis/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource of the API Config, of the form: projects/*/locations/global/apis/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasApiConfig()

public boolean hasApiConfig()

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the apiConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiConfig(ApiConfig value)

public CreateApiConfigRequest.Builder mergeApiConfig(ApiConfig value)

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiConfig
Returns
Type Description
CreateApiConfigRequest.Builder

mergeFrom(CreateApiConfigRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApiConfig(ApiConfig value)

public CreateApiConfigRequest.Builder setApiConfig(ApiConfig value)

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiConfig
Returns
Type Description
CreateApiConfigRequest.Builder

setApiConfig(ApiConfig.Builder builderForValue)

public CreateApiConfigRequest.Builder setApiConfig(ApiConfig.Builder builderForValue)

Required. API resource.

.google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ApiConfig.Builder
Returns
Type Description
CreateApiConfigRequest.Builder

setApiConfigId(String value)

public CreateApiConfigRequest.Builder setApiConfigId(String value)

Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource.

string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The apiConfigId to set.

Returns
Type Description
CreateApiConfigRequest.Builder

This builder for chaining.

setApiConfigIdBytes(ByteString value)

public CreateApiConfigRequest.Builder setApiConfigIdBytes(ByteString value)

Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource.

string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for apiConfigId to set.

Returns
Type Description
CreateApiConfigRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateApiConfigRequest.Builder setParent(String value)

Required. Parent resource of the API Config, of the form: projects/*/locations/global/apis/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateApiConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateApiConfigRequest.Builder setParentBytes(ByteString value)

Required. Parent resource of the API Config, of the form: projects/*/locations/global/apis/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateApiConfigRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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