Class CreateApiSpecRequest.Builder (0.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateApiSpecRequest build()
Returns
TypeDescription
CreateApiSpecRequest

buildPartial()

public CreateApiSpecRequest buildPartial()
Returns
TypeDescription
CreateApiSpecRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateApiSpecRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateApiSpecRequest

getDescriptorForType()

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

Whether the apiSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(CreateApiSpecRequest other)

public CreateApiSpecRequest.Builder mergeFrom(CreateApiSpecRequest other)
Parameter
NameDescription
otherCreateApiSpecRequest
Returns
TypeDescription
CreateApiSpecRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateApiSpecRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueApiSpec
Returns
TypeDescription
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
NameDescription
builderForValueApiSpec.Builder
Returns
TypeDescription
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
NameDescription
valueString

The apiSpecId to set.

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

The bytes for apiSpecId to set.

Returns
TypeDescription
CreateApiSpecRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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