Class AddContextArtifactsAndExecutionsRequest.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<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.GeneratedMessageV3.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

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

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

        public AddContextArtifactsAndExecutionsRequest.Builder setContext​(String 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 context to set.
        Returns:
        This builder for chaining.
      • clearContext

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

        public AddContextArtifactsAndExecutionsRequest.Builder addArtifacts​(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:
        value - The artifacts to add.
        Returns:
        This builder for chaining.
      • addAllArtifacts

        public AddContextArtifactsAndExecutionsRequest.Builder addAllArtifacts​(Iterable<String> values)
         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

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

        public AddContextArtifactsAndExecutionsRequest.Builder addExecutions​(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:
        value - The executions to add.
        Returns:
        This builder for chaining.
      • addAllExecutions

        public AddContextArtifactsAndExecutionsRequest.Builder addAllExecutions​(Iterable<String> values)
         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

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