Class LookupPublicKgRequest.Builder

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

public static final class LookupPublicKgRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<LookupPublicKgRequest.Builder> implements LookupPublicKgRequestOrBuilder
 Request message for
 [EnterpriseKnowledgeGraphService.LookupPublicKg][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.LookupPublicKg].
 
Protobuf type google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest
  • 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<LookupPublicKgRequest.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<LookupPublicKgRequest.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<LookupPublicKgRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The name of the Entity's parent resource.
       Format:
       `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface LookupPublicKgRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the Entity's parent resource.
       Format:
       `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface LookupPublicKgRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public LookupPublicKgRequest.Builder setParent(String value)
       Required. The name of the Entity's parent 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 LookupPublicKgRequest.Builder clearParent()
       Required. The name of the Entity's parent 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 LookupPublicKgRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the Entity's parent 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.
    • getIdsList

      public com.google.protobuf.ProtocolStringList getIdsList()
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdsList in interface LookupPublicKgRequestOrBuilder
      Returns:
      A list containing the ids.
    • getIdsCount

      public int getIdsCount()
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdsCount in interface LookupPublicKgRequestOrBuilder
      Returns:
      The count of ids.
    • getIds

      public String getIds(int index)
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIds in interface LookupPublicKgRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ids at the given index.
    • getIdsBytes

      public com.google.protobuf.ByteString getIdsBytes(int index)
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdsBytes in interface LookupPublicKgRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ids at the given index.
    • setIds

      public LookupPublicKgRequest.Builder setIds(int index, String value)
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The ids to set.
      Returns:
      This builder for chaining.
    • addIds

      public LookupPublicKgRequest.Builder addIds(String value)
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ids to add.
      Returns:
      This builder for chaining.
    • addAllIds

      public LookupPublicKgRequest.Builder addAllIds(Iterable<String> values)
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The ids to add.
      Returns:
      This builder for chaining.
    • clearIds

      public LookupPublicKgRequest.Builder clearIds()
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addIdsBytes

      public LookupPublicKgRequest.Builder addIdsBytes(com.google.protobuf.ByteString value)
       Required. The list of entity ids to be used for lookup.
       
      repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the ids to add.
      Returns:
      This builder for chaining.
    • getLanguagesList

      public com.google.protobuf.ProtocolStringList getLanguagesList()
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Specified by:
      getLanguagesList in interface LookupPublicKgRequestOrBuilder
      Returns:
      A list containing the languages.
    • getLanguagesCount

      public int getLanguagesCount()
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Specified by:
      getLanguagesCount in interface LookupPublicKgRequestOrBuilder
      Returns:
      The count of languages.
    • getLanguages

      public String getLanguages(int index)
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Specified by:
      getLanguages in interface LookupPublicKgRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The languages at the given index.
    • getLanguagesBytes

      public com.google.protobuf.ByteString getLanguagesBytes(int index)
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Specified by:
      getLanguagesBytes in interface LookupPublicKgRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the languages at the given index.
    • setLanguages

      public LookupPublicKgRequest.Builder setLanguages(int index, String value)
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Parameters:
      index - The index to set the value at.
      value - The languages to set.
      Returns:
      This builder for chaining.
    • addLanguages

      public LookupPublicKgRequest.Builder addLanguages(String value)
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Parameters:
      value - The languages to add.
      Returns:
      This builder for chaining.
    • addAllLanguages

      public LookupPublicKgRequest.Builder addAllLanguages(Iterable<String> values)
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Parameters:
      values - The languages to add.
      Returns:
      This builder for chaining.
    • clearLanguages

      public LookupPublicKgRequest.Builder clearLanguages()
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Returns:
      This builder for chaining.
    • addLanguagesBytes

      public LookupPublicKgRequest.Builder addLanguagesBytes(com.google.protobuf.ByteString value)
       The list of language codes (defined in ISO 693) to run the query with,
       e.g. 'en'.
       
      repeated string languages = 3;
      Parameters:
      value - The bytes of the languages to add.
      Returns:
      This builder for chaining.