Class CreateIndexEndpointRequest.Builder

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

public static final class CreateIndexEndpointRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateIndexEndpointRequest.Builder> implements CreateIndexEndpointRequestOrBuilder
 Request message for CreateIndexEndpoint.
 
Protobuf type google.cloud.visionai.v1.CreateIndexEndpointRequest
  • 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<CreateIndexEndpointRequest.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<CreateIndexEndpointRequest.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<CreateIndexEndpointRequest.Builder>
    • getDefaultInstanceForType

      public CreateIndexEndpointRequest 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 CreateIndexEndpointRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

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

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

      public CreateIndexEndpointRequest.Builder setParent(String value)
       Required. 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 CreateIndexEndpointRequest.Builder clearParent()
       Required. Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateIndexEndpointRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. 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.
    • getIndexEndpointId

      public String getIndexEndpointId()
       Optional. The ID to use for the IndexEndpoint, which will become the final
       component of the IndexEndpoint's resource name if the user specifies it.
       Otherwise, IndexEndpoint id will be autogenerated.
      
       This value should be up to 63 characters, and valid characters
       are a-z, 0-9 and dash (-). The first character must be a letter, the last
       must be a letter or a number.
       
      string index_endpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIndexEndpointId in interface CreateIndexEndpointRequestOrBuilder
      Returns:
      The indexEndpointId.
    • getIndexEndpointIdBytes

      public com.google.protobuf.ByteString getIndexEndpointIdBytes()
       Optional. The ID to use for the IndexEndpoint, which will become the final
       component of the IndexEndpoint's resource name if the user specifies it.
       Otherwise, IndexEndpoint id will be autogenerated.
      
       This value should be up to 63 characters, and valid characters
       are a-z, 0-9 and dash (-). The first character must be a letter, the last
       must be a letter or a number.
       
      string index_endpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIndexEndpointIdBytes in interface CreateIndexEndpointRequestOrBuilder
      Returns:
      The bytes for indexEndpointId.
    • setIndexEndpointId

      public CreateIndexEndpointRequest.Builder setIndexEndpointId(String value)
       Optional. The ID to use for the IndexEndpoint, which will become the final
       component of the IndexEndpoint's resource name if the user specifies it.
       Otherwise, IndexEndpoint id will be autogenerated.
      
       This value should be up to 63 characters, and valid characters
       are a-z, 0-9 and dash (-). The first character must be a letter, the last
       must be a letter or a number.
       
      string index_endpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The indexEndpointId to set.
      Returns:
      This builder for chaining.
    • clearIndexEndpointId

      public CreateIndexEndpointRequest.Builder clearIndexEndpointId()
       Optional. The ID to use for the IndexEndpoint, which will become the final
       component of the IndexEndpoint's resource name if the user specifies it.
       Otherwise, IndexEndpoint id will be autogenerated.
      
       This value should be up to 63 characters, and valid characters
       are a-z, 0-9 and dash (-). The first character must be a letter, the last
       must be a letter or a number.
       
      string index_endpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setIndexEndpointIdBytes

      public CreateIndexEndpointRequest.Builder setIndexEndpointIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the IndexEndpoint, which will become the final
       component of the IndexEndpoint's resource name if the user specifies it.
       Otherwise, IndexEndpoint id will be autogenerated.
      
       This value should be up to 63 characters, and valid characters
       are a-z, 0-9 and dash (-). The first character must be a letter, the last
       must be a letter or a number.
       
      string index_endpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for indexEndpointId to set.
      Returns:
      This builder for chaining.
    • hasIndexEndpoint

      public boolean hasIndexEndpoint()
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasIndexEndpoint in interface CreateIndexEndpointRequestOrBuilder
      Returns:
      Whether the indexEndpoint field is set.
    • getIndexEndpoint

      public IndexEndpoint getIndexEndpoint()
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIndexEndpoint in interface CreateIndexEndpointRequestOrBuilder
      Returns:
      The indexEndpoint.
    • setIndexEndpoint

      public CreateIndexEndpointRequest.Builder setIndexEndpoint(IndexEndpoint value)
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
    • setIndexEndpoint

      public CreateIndexEndpointRequest.Builder setIndexEndpoint(IndexEndpoint.Builder builderForValue)
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeIndexEndpoint

      public CreateIndexEndpointRequest.Builder mergeIndexEndpoint(IndexEndpoint value)
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearIndexEndpoint

      public CreateIndexEndpointRequest.Builder clearIndexEndpoint()
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
    • getIndexEndpointBuilder

      public IndexEndpoint.Builder getIndexEndpointBuilder()
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
    • getIndexEndpointOrBuilder

      public IndexEndpointOrBuilder getIndexEndpointOrBuilder()
       Required. The resource being created.
       
      .google.cloud.visionai.v1.IndexEndpoint index_endpoint = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIndexEndpointOrBuilder in interface CreateIndexEndpointRequestOrBuilder