Class CreateGlossaryCategoryRequest.Builder

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

public static final class CreateGlossaryCategoryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateGlossaryCategoryRequest.Builder> implements CreateGlossaryCategoryRequestOrBuilder
 Creates a new GlossaryCategory under the specified Glossary.
 
Protobuf type google.cloud.dataplex.v1.CreateGlossaryCategoryRequest
  • 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<CreateGlossaryCategoryRequest.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<CreateGlossaryCategoryRequest.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<CreateGlossaryCategoryRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public CreateGlossaryCategoryRequest.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<CreateGlossaryCategoryRequest.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<CreateGlossaryCategoryRequest.Builder>
    • mergeFrom

      public CreateGlossaryCategoryRequest.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<CreateGlossaryCategoryRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource where this GlossaryCategory will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `locationId` refers to a Google Cloud region.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateGlossaryCategoryRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this GlossaryCategory will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `locationId` refers to a Google Cloud region.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateGlossaryCategoryRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The parent resource where this GlossaryCategory will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `locationId` refers to a Google Cloud region.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent resource where this GlossaryCategory will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `locationId` refers to a Google Cloud region.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateGlossaryCategoryRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where this GlossaryCategory will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `locationId` refers to a Google Cloud region.
       
      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.
    • getCategoryId

      public String getCategoryId()
       Required. GlossaryCategory identifier.
       
      string category_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategoryId in interface CreateGlossaryCategoryRequestOrBuilder
      Returns:
      The categoryId.
    • getCategoryIdBytes

      public com.google.protobuf.ByteString getCategoryIdBytes()
       Required. GlossaryCategory identifier.
       
      string category_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategoryIdBytes in interface CreateGlossaryCategoryRequestOrBuilder
      Returns:
      The bytes for categoryId.
    • setCategoryId

      public CreateGlossaryCategoryRequest.Builder setCategoryId(String value)
       Required. GlossaryCategory identifier.
       
      string category_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The categoryId to set.
      Returns:
      This builder for chaining.
    • clearCategoryId

      public CreateGlossaryCategoryRequest.Builder clearCategoryId()
       Required. GlossaryCategory identifier.
       
      string category_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCategoryIdBytes

      public CreateGlossaryCategoryRequest.Builder setCategoryIdBytes(com.google.protobuf.ByteString value)
       Required. GlossaryCategory identifier.
       
      string category_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for categoryId to set.
      Returns:
      This builder for chaining.
    • hasCategory

      public boolean hasCategory()
       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCategory in interface CreateGlossaryCategoryRequestOrBuilder
      Returns:
      Whether the category field is set.
    • getCategory

      public GlossaryCategory getCategory()
       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategory in interface CreateGlossaryCategoryRequestOrBuilder
      Returns:
      The category.
    • setCategory

       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
    • setCategory

       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeCategory

       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearCategory

      public CreateGlossaryCategoryRequest.Builder clearCategory()
       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCategoryBuilder

      public GlossaryCategory.Builder getCategoryBuilder()
       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCategoryOrBuilder

      public GlossaryCategoryOrBuilder getCategoryOrBuilder()
       Required. The GlossaryCategory to create.
       
      .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategoryOrBuilder in interface CreateGlossaryCategoryRequestOrBuilder