public static final class CreateApiSpecRequest.Builder extends GeneratedMessageV3.Builder<CreateApiSpecRequest.Builder> implements CreateApiSpecRequestOrBuilder
Request message for CreateApiSpec.
Protobuf type google.cloud.apigeeregistry.v1.CreateApiSpecRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateApiSpecRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateApiSpecRequest build()
Returns
buildPartial()
public CreateApiSpecRequest buildPartial()
Returns
clear()
public CreateApiSpecRequest.Builder clear()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public CreateApiSpecRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateApiSpecRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CreateApiSpecRequest.Builder clone()
Returns
Overrides
getApiSpec()
public ApiSpec getApiSpec()
Required. The spec to create.
.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getApiSpecBuilder()
public ApiSpec.Builder getApiSpecBuilder()
Required. The spec to create.
.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
getApiSpecOrBuilder()
public ApiSpecOrBuilder getApiSpecOrBuilder()
Required. The spec to create.
.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public CreateApiSpecRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(CreateApiSpecRequest other)
public CreateApiSpecRequest.Builder mergeFrom(CreateApiSpecRequest other)
Parameter
Returns
public CreateApiSpecRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateApiSpecRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateApiSpecRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public CreateApiSpecRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateApiSpecRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateApiSpecRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides