public static final class CreateCurationRequest.Builder extends GeneratedMessageV3.Builder<CreateCurationRequest.Builder> implements CreateCurationRequestOrBuilderThe CreateCuration method's request.
Protobuf type google.cloud.apihub.v1.CreateCurationRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateCurationRequest.BuilderImplements
CreateCurationRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCurationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
build()
public CreateCurationRequest build()| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest |
|
buildPartial()
public CreateCurationRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest |
|
clear()
public CreateCurationRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
clearCuration()
public CreateCurationRequest.Builder clearCuration()Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
clearCurationId()
public CreateCurationRequest.Builder clearCurationId()Optional. The ID to use for the curation resource, which will become the final component of the curations's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified ID is already used by another curation resource in the API hub.
If not provided, a system generated ID will be used.
This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateCurationRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCurationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
clearParent()
public CreateCurationRequest.Builder clearParent() Required. The parent resource for the curation resource.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
This builder for chaining. |
clone()
public CreateCurationRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
getCuration()
public Curation getCuration()Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Curation |
The curation. |
getCurationBuilder()
public Curation.Builder getCurationBuilder()Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Curation.Builder |
|
getCurationId()
public String getCurationId()Optional. The ID to use for the curation resource, which will become the final component of the curations's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified ID is already used by another curation resource in the API hub.
If not provided, a system generated ID will be used.
This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The curationId. |
getCurationIdBytes()
public ByteString getCurationIdBytes()Optional. The ID to use for the curation resource, which will become the final component of the curations's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified ID is already used by another curation resource in the API hub.
If not provided, a system generated ID will be used.
This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for curationId. |
getCurationOrBuilder()
public CurationOrBuilder getCurationOrBuilder()Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CurationOrBuilder |
|
getDefaultInstanceForType()
public CreateCurationRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The parent resource for the curation resource.
Format: projects/{project}/locations/{location}
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 resource for the curation resource.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasCuration()
public boolean hasCuration()Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the curation field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCuration(Curation value)
public CreateCurationRequest.Builder mergeCuration(Curation value)Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Curation |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
mergeFrom(CreateCurationRequest other)
public CreateCurationRequest.Builder mergeFrom(CreateCurationRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateCurationRequest |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateCurationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateCurationRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCurationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
setCuration(Curation value)
public CreateCurationRequest.Builder setCuration(Curation value)Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Curation |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
setCuration(Curation.Builder builderForValue)
public CreateCurationRequest.Builder setCuration(Curation.Builder builderForValue)Required. The curation resource to create.
.google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Curation.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
setCurationId(String value)
public CreateCurationRequest.Builder setCurationId(String value)Optional. The ID to use for the curation resource, which will become the final component of the curations's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified ID is already used by another curation resource in the API hub.
If not provided, a system generated ID will be used.
This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe curationId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
This builder for chaining. |
setCurationIdBytes(ByteString value)
public CreateCurationRequest.Builder setCurationIdBytes(ByteString value)Optional. The ID to use for the curation resource, which will become the final component of the curations's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified ID is already used by another curation resource in the API hub.
If not provided, a system generated ID will be used.
This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for curationId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCurationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
setParent(String value)
public CreateCurationRequest.Builder setParent(String value) Required. The parent resource for the curation resource.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateCurationRequest.Builder setParentBytes(ByteString value) Required. The parent resource for the curation resource.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateCurationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCurationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CreateCurationRequest.Builder |
|