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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateApiSpecRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateApiSpecRequest build()
buildPartial()
public CreateApiSpecRequest buildPartial()
clear()
public CreateApiSpecRequest.Builder clear()
Overrides
clearApiSpec()
public CreateApiSpecRequest.Builder clearApiSpec()
Required. The spec to create.
.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];
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];
clearField(Descriptors.FieldDescriptor field)
public CreateApiSpecRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateApiSpecRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateApiSpecRequest.Builder clone()
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];
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];
getDefaultInstanceForType()
public CreateApiSpecRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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
|
mergeFrom(CreateApiSpecRequest other)
public CreateApiSpecRequest.Builder mergeFrom(CreateApiSpecRequest other)
public CreateApiSpecRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateApiSpecRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateApiSpecRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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];
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateApiSpecRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateApiSpecRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateApiSpecRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides