Class CreateGlossaryTermRequest.Builder

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

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

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

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

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

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

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

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

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

      public CreateGlossaryTermRequest.Builder setParent(String value)
       Required. The parent resource where the GlossaryTerm will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `location_id` 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

      public CreateGlossaryTermRequest.Builder clearParent()
       Required. The parent resource where the GlossaryTerm will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `location_id` 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 CreateGlossaryTermRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where the GlossaryTerm will be created.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}
       where `location_id` 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.
    • getTermId

      public String getTermId()
       Required. GlossaryTerm identifier.
       
      string term_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTermId in interface CreateGlossaryTermRequestOrBuilder
      Returns:
      The termId.
    • getTermIdBytes

      public com.google.protobuf.ByteString getTermIdBytes()
       Required. GlossaryTerm identifier.
       
      string term_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTermIdBytes in interface CreateGlossaryTermRequestOrBuilder
      Returns:
      The bytes for termId.
    • setTermId

      public CreateGlossaryTermRequest.Builder setTermId(String value)
       Required. GlossaryTerm identifier.
       
      string term_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The termId to set.
      Returns:
      This builder for chaining.
    • clearTermId

      public CreateGlossaryTermRequest.Builder clearTermId()
       Required. GlossaryTerm identifier.
       
      string term_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTermIdBytes

      public CreateGlossaryTermRequest.Builder setTermIdBytes(com.google.protobuf.ByteString value)
       Required. GlossaryTerm identifier.
       
      string term_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for termId to set.
      Returns:
      This builder for chaining.
    • hasTerm

      public boolean hasTerm()
       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTerm in interface CreateGlossaryTermRequestOrBuilder
      Returns:
      Whether the term field is set.
    • getTerm

      public GlossaryTerm getTerm()
       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTerm in interface CreateGlossaryTermRequestOrBuilder
      Returns:
      The term.
    • setTerm

       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
    • setTerm

      public CreateGlossaryTermRequest.Builder setTerm(GlossaryTerm.Builder builderForValue)
       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeTerm

       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearTerm

       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
    • getTermBuilder

      public GlossaryTerm.Builder getTermBuilder()
       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
    • getTermOrBuilder

      public GlossaryTermOrBuilder getTermOrBuilder()
       Required. The GlossaryTerm to create.
       
      .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTermOrBuilder in interface CreateGlossaryTermRequestOrBuilder