Class CreateApiConfigRequest.Builder (2.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateApiConfigRequest build()
Returns
TypeDescription
CreateApiConfigRequest

buildPartial()

public CreateApiConfigRequest buildPartial()
Returns
TypeDescription
CreateApiConfigRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getApiConfig()

public ApiConfig getApiConfig()

Required. API resource.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ApiConfigOrBuilder

getDefaultInstanceForType()

public CreateApiConfigRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateApiConfigRequest

getDescriptorForType()

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

Whether the apiConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(CreateApiConfigRequest other)

public CreateApiConfigRequest.Builder mergeFrom(CreateApiConfigRequest other)
Parameter
NameDescription
otherCreateApiConfigRequest
Returns
TypeDescription
CreateApiConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateApiConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueApiConfig
Returns
TypeDescription
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
NameDescription
builderForValueApiConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The apiConfigId to set.

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

The bytes for apiConfigId to set.

Returns
TypeDescription
CreateApiConfigRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateApiConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateApiConfigRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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