Class CreateCurationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateCurationRequest.Builder>
com.google.cloud.apihub.v1.CreateCurationRequest.Builder
All Implemented Interfaces:
CreateCurationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateCurationRequest

public static final class CreateCurationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateCurationRequest.Builder> implements CreateCurationRequestOrBuilder
 The [CreateCuration][ApiHub.CreateCuration] method's request.
 
Protobuf type google.cloud.apihub.v1.CreateCurationRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateCurationRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateCurationRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateCurationRequest.Builder>
    • getDefaultInstanceForType

      public CreateCurationRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateCurationRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateCurationRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateCurationRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateCurationRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateCurationRequest.Builder>
    • mergeFrom

      public CreateCurationRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateCurationRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getParent in interface CreateCurationRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getParentBytes in interface CreateCurationRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      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) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setParentBytes

      public CreateCurationRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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][A-Z][0-9]-_/.
       
      string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCurationId in interface CreateCurationRequestOrBuilder
      Returns:
      The curationId.
    • getCurationIdBytes

      public com.google.protobuf.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][A-Z][0-9]-_/.
       
      string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCurationIdBytes in interface CreateCurationRequestOrBuilder
      Returns:
      The bytes for curationId.
    • setCurationId

      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][A-Z][0-9]-_/.
       
      string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The curationId to set.
      Returns:
      This builder for chaining.
    • 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][A-Z][0-9]-_/.
       
      string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCurationIdBytes

      public CreateCurationRequest.Builder setCurationIdBytes(com.google.protobuf.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][A-Z][0-9]-_/.
       
      string curation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for curationId to set.
      Returns:
      This builder for chaining.
    • hasCuration

      public boolean hasCuration()
       Required. The curation resource to create.
       
      .google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCuration in interface CreateCurationRequestOrBuilder
      Returns:
      Whether the curation field is set.
    • getCuration

      public Curation getCuration()
       Required. The curation resource to create.
       
      .google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCuration in interface CreateCurationRequestOrBuilder
      Returns:
      The curation.
    • setCuration

      public CreateCurationRequest.Builder setCuration(Curation value)
       Required. The curation resource to create.
       
      .google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
    • setCuration

      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];
    • mergeCuration

      public CreateCurationRequest.Builder mergeCuration(Curation value)
       Required. The curation resource to create.
       
      .google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearCuration

      public CreateCurationRequest.Builder clearCuration()
       Required. The curation resource to create.
       
      .google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCurationBuilder

      public Curation.Builder getCurationBuilder()
       Required. The curation resource to create.
       
      .google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCurationOrBuilder

      public CurationOrBuilder getCurationOrBuilder()
       Required. The curation resource to create.
       
      .google.cloud.apihub.v1.Curation curation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCurationOrBuilder in interface CreateCurationRequestOrBuilder