Class CreateApiSpecRequest.Builder (0.42.0)

public static final class CreateApiSpecRequest.Builder extends GeneratedMessageV3.Builder<CreateApiSpecRequest.Builder> implements CreateApiSpecRequestOrBuilder

Request message for CreateApiSpec.

Protobuf type google.cloud.apigeeregistry.v1.CreateApiSpecRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateApiSpecRequest build()
Returns
Type Description
CreateApiSpecRequest

buildPartial()

public CreateApiSpecRequest buildPartial()
Returns
Type Description
CreateApiSpecRequest

clear()

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

clearApiSpec()

public CreateApiSpecRequest.Builder clearApiSpec()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateApiSpecRequest.Builder

clearApiSpecId()

public CreateApiSpecRequest.Builder clearApiSpecId()

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

Following AIP-162, IDs must not have the form of a UUID.

string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateApiSpecRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateApiSpecRequest.Builder clearParent()

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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

Returns
Type Description
CreateApiSpecRequest.Builder

This builder for chaining.

clone()

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

getApiSpec()

public ApiSpec getApiSpec()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiSpec

The apiSpec.

getApiSpecBuilder()

public ApiSpec.Builder getApiSpecBuilder()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiSpec.Builder

getApiSpecId()

public String getApiSpecId()

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

Following AIP-162, IDs must not have the form of a UUID.

string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The apiSpecId.

getApiSpecIdBytes()

public ByteString getApiSpecIdBytes()

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

Following AIP-162, IDs must not have the form of a UUID.

string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for apiSpecId.

getApiSpecOrBuilder()

public ApiSpecOrBuilder getApiSpecOrBuilder()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiSpecOrBuilder

getDefaultInstanceForType()

public CreateApiSpecRequest getDefaultInstanceForType()
Returns
Type Description
CreateApiSpecRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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

Returns
Type Description
ByteString

The bytes for parent.

hasApiSpec()

public boolean hasApiSpec()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the apiSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiSpec(ApiSpec value)

public CreateApiSpecRequest.Builder mergeApiSpec(ApiSpec value)

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiSpec
Returns
Type Description
CreateApiSpecRequest.Builder

mergeFrom(CreateApiSpecRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApiSpec(ApiSpec value)

public CreateApiSpecRequest.Builder setApiSpec(ApiSpec value)

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiSpec
Returns
Type Description
CreateApiSpecRequest.Builder

setApiSpec(ApiSpec.Builder builderForValue)

public CreateApiSpecRequest.Builder setApiSpec(ApiSpec.Builder builderForValue)

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ApiSpec.Builder
Returns
Type Description
CreateApiSpecRequest.Builder

setApiSpecId(String value)

public CreateApiSpecRequest.Builder setApiSpecId(String value)

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

Following AIP-162, IDs must not have the form of a UUID.

string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The apiSpecId to set.

Returns
Type Description
CreateApiSpecRequest.Builder

This builder for chaining.

setApiSpecIdBytes(ByteString value)

public CreateApiSpecRequest.Builder setApiSpecIdBytes(ByteString value)

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

Following AIP-162, IDs must not have the form of a UUID.

string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for apiSpecId to set.

Returns
Type Description
CreateApiSpecRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateApiSpecRequest.Builder setParent(String value)

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateApiSpecRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateApiSpecRequest.Builder setParentBytes(ByteString value)

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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
CreateApiSpecRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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