Class ReadIndexDatapointsRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReadIndexDatapointsRequest.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.GeneratedMessageV3.Builder<ReadIndexDatapointsRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public ReadIndexDatapointsRequest.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<ReadIndexDatapointsRequest.Builder>
        Throws:
        IOException
      • getIndexEndpoint

        public String getIndexEndpoint()
         Required. The name of the index endpoint.
         Format:
         `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
         
        string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getIndexEndpoint in interface ReadIndexDatapointsRequestOrBuilder
        Returns:
        The indexEndpoint.
      • getIndexEndpointBytes

        public com.google.protobuf.ByteString getIndexEndpointBytes()
         Required. The name of the index endpoint.
         Format:
         `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
         
        string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getIndexEndpointBytes in interface ReadIndexDatapointsRequestOrBuilder
        Returns:
        The bytes for indexEndpoint.
      • setIndexEndpoint

        public ReadIndexDatapointsRequest.Builder setIndexEndpoint​(String value)
         Required. The name of the index endpoint.
         Format:
         `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
         
        string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The indexEndpoint to set.
        Returns:
        This builder for chaining.
      • clearIndexEndpoint

        public ReadIndexDatapointsRequest.Builder clearIndexEndpoint()
         Required. The name of the index endpoint.
         Format:
         `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
         
        string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setIndexEndpointBytes

        public ReadIndexDatapointsRequest.Builder setIndexEndpointBytes​(com.google.protobuf.ByteString value)
         Required. The name of the index endpoint.
         Format:
         `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
         
        string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for indexEndpoint to set.
        Returns:
        This builder for chaining.
      • getDeployedIndexIdBytes

        public com.google.protobuf.ByteString getDeployedIndexIdBytes()
         The ID of the DeployedIndex that will serve the request.
         
        string deployed_index_id = 2;
        Specified by:
        getDeployedIndexIdBytes in interface ReadIndexDatapointsRequestOrBuilder
        Returns:
        The bytes for deployedIndexId.
      • setDeployedIndexId

        public ReadIndexDatapointsRequest.Builder setDeployedIndexId​(String value)
         The ID of the DeployedIndex that will serve the request.
         
        string deployed_index_id = 2;
        Parameters:
        value - The deployedIndexId to set.
        Returns:
        This builder for chaining.
      • clearDeployedIndexId

        public ReadIndexDatapointsRequest.Builder clearDeployedIndexId()
         The ID of the DeployedIndex that will serve the request.
         
        string deployed_index_id = 2;
        Returns:
        This builder for chaining.
      • setDeployedIndexIdBytes

        public ReadIndexDatapointsRequest.Builder setDeployedIndexIdBytes​(com.google.protobuf.ByteString value)
         The ID of the DeployedIndex that will serve the request.
         
        string deployed_index_id = 2;
        Parameters:
        value - The bytes for deployedIndexId to set.
        Returns:
        This builder for chaining.
      • getIdsList

        public com.google.protobuf.ProtocolStringList getIdsList()
         IDs of the datapoints to be searched for.
         
        repeated string ids = 3;
        Specified by:
        getIdsList in interface ReadIndexDatapointsRequestOrBuilder
        Returns:
        A list containing the ids.
      • getIds

        public String getIds​(int index)
         IDs of the datapoints to be searched for.
         
        repeated string ids = 3;
        Specified by:
        getIds in interface ReadIndexDatapointsRequestOrBuilder
        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)
         IDs of the datapoints to be searched for.
         
        repeated string ids = 3;
        Specified by:
        getIdsBytes in interface ReadIndexDatapointsRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ids at the given index.
      • setIds

        public ReadIndexDatapointsRequest.Builder setIds​(int index,
                                                         String value)
         IDs of the datapoints to be searched for.
         
        repeated string ids = 3;
        Parameters:
        index - The index to set the value at.
        value - The ids to set.
        Returns:
        This builder for chaining.
      • addIds

        public ReadIndexDatapointsRequest.Builder addIds​(String value)
         IDs of the datapoints to be searched for.
         
        repeated string ids = 3;
        Parameters:
        value - The ids to add.
        Returns:
        This builder for chaining.
      • addIdsBytes

        public ReadIndexDatapointsRequest.Builder addIdsBytes​(com.google.protobuf.ByteString value)
         IDs of the datapoints to be searched for.
         
        repeated string ids = 3;
        Parameters:
        value - The bytes of the ids to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ReadIndexDatapointsRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReadIndexDatapointsRequest.Builder>
      • mergeUnknownFields

        public final ReadIndexDatapointsRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReadIndexDatapointsRequest.Builder>