Class AddContextArtifactsAndExecutionsRequest.Builder

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

public static final class AddContextArtifactsAndExecutionsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AddContextArtifactsAndExecutionsRequest.Builder> implements AddContextArtifactsAndExecutionsRequestOrBuilder
 Request message for
 [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions].
 
Protobuf type google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest
  • 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<AddContextArtifactsAndExecutionsRequest.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<AddContextArtifactsAndExecutionsRequest.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<AddContextArtifactsAndExecutionsRequest.Builder>
    • getDefaultInstanceForType

      public AddContextArtifactsAndExecutionsRequest 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

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public AddContextArtifactsAndExecutionsRequest.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<AddContextArtifactsAndExecutionsRequest.Builder>
      Throws:
      IOException
    • getContext

      public String getContext()
       Required. The resource name of the Context that the Artifacts and
       Executions belong to. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContext in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Returns:
      The context.
    • getContextBytes

      public com.google.protobuf.ByteString getContextBytes()
       Required. The resource name of the Context that the Artifacts and
       Executions belong to. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContextBytes in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Returns:
      The bytes for context.
    • setContext

       Required. The resource name of the Context that the Artifacts and
       Executions belong to. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The context to set.
      Returns:
      This builder for chaining.
    • clearContext

       Required. The resource name of the Context that the Artifacts and
       Executions belong to. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setContextBytes

      public AddContextArtifactsAndExecutionsRequest.Builder setContextBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Context that the Artifacts and
       Executions belong to. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for context to set.
      Returns:
      This builder for chaining.
    • getArtifactsList

      public com.google.protobuf.ProtocolStringList getArtifactsList()
       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getArtifactsList in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Returns:
      A list containing the artifacts.
    • getArtifactsCount

      public int getArtifactsCount()
       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getArtifactsCount in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Returns:
      The count of artifacts.
    • getArtifacts

      public String getArtifacts(int index)
       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getArtifacts in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The artifacts at the given index.
    • getArtifactsBytes

      public com.google.protobuf.ByteString getArtifactsBytes(int index)
       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getArtifactsBytes in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the artifacts at the given index.
    • setArtifacts

      public AddContextArtifactsAndExecutionsRequest.Builder setArtifacts(int index, String value)
       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The artifacts to set.
      Returns:
      This builder for chaining.
    • addArtifacts

       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The artifacts to add.
      Returns:
      This builder for chaining.
    • addAllArtifacts

       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The artifacts to add.
      Returns:
      This builder for chaining.
    • clearArtifacts

       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addArtifactsBytes

      public AddContextArtifactsAndExecutionsRequest.Builder addArtifactsBytes(com.google.protobuf.ByteString value)
       The resource names of the Artifacts to attribute to the Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
       
      repeated string artifacts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the artifacts to add.
      Returns:
      This builder for chaining.
    • getExecutionsList

      public com.google.protobuf.ProtocolStringList getExecutionsList()
       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getExecutionsList in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Returns:
      A list containing the executions.
    • getExecutionsCount

      public int getExecutionsCount()
       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getExecutionsCount in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Returns:
      The count of executions.
    • getExecutions

      public String getExecutions(int index)
       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getExecutions in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The executions at the given index.
    • getExecutionsBytes

      public com.google.protobuf.ByteString getExecutionsBytes(int index)
       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getExecutionsBytes in interface AddContextArtifactsAndExecutionsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the executions at the given index.
    • setExecutions

      public AddContextArtifactsAndExecutionsRequest.Builder setExecutions(int index, String value)
       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The executions to set.
      Returns:
      This builder for chaining.
    • addExecutions

       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The executions to add.
      Returns:
      This builder for chaining.
    • addAllExecutions

       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The executions to add.
      Returns:
      This builder for chaining.
    • clearExecutions

       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addExecutionsBytes

      public AddContextArtifactsAndExecutionsRequest.Builder addExecutionsBytes(com.google.protobuf.ByteString value)
       The resource names of the Executions to associate with the
       Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`
       
      repeated string executions = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the executions to add.
      Returns:
      This builder for chaining.