Class LookupRequest.Builder

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

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

      public LookupRequest.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<LookupRequest.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<LookupRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LookupRequest.Builder mergeFrom(LookupRequest other)
    • isInitialized

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

      public LookupRequest.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<LookupRequest.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 LookupRequestOrBuilder
      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 LookupRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public LookupRequest.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 LookupRequest.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 LookupRequest.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 LookupRequestOrBuilder
      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 LookupRequestOrBuilder
      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 LookupRequestOrBuilder
      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 LookupRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ids at the given index.
    • setIds

      public LookupRequest.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 LookupRequest.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 LookupRequest.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 LookupRequest.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 LookupRequest.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 LookupRequestOrBuilder
      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 LookupRequestOrBuilder
      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 LookupRequestOrBuilder
      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 LookupRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the languages at the given index.
    • setLanguages

      public LookupRequest.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 LookupRequest.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 LookupRequest.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 LookupRequest.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 LookupRequest.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.