Class AddContextArtifactsAndExecutionsRequest.Builder (3.41.0)

public static final class AddContextArtifactsAndExecutionsRequest.Builder extends GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder> implements AddContextArtifactsAndExecutionsRequestOrBuilder

Request message for MetadataService.AddContextArtifactsAndExecutions.

Protobuf type google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllArtifacts(Iterable<String> values)

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) = { ... }

Parameter
NameDescription
valuesIterable<String>

The artifacts to add.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

addAllExecutions(Iterable<String> values)

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) = { ... }

Parameter
NameDescription
valuesIterable<String>

The executions to add.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

addArtifacts(String value)

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) = { ... }

Parameter
NameDescription
valueString

The artifacts to add.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

addArtifactsBytes(ByteString value)

public AddContextArtifactsAndExecutionsRequest.Builder addArtifactsBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the artifacts to add.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

addExecutions(String value)

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) = { ... }

Parameter
NameDescription
valueString

The executions to add.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

addExecutionsBytes(ByteString value)

public AddContextArtifactsAndExecutionsRequest.Builder addExecutionsBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the executions to add.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AddContextArtifactsAndExecutionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

build()

public AddContextArtifactsAndExecutionsRequest build()
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest

buildPartial()

public AddContextArtifactsAndExecutionsRequest buildPartial()
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest

clear()

public AddContextArtifactsAndExecutionsRequest.Builder clear()
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

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

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

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AddContextArtifactsAndExecutionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AddContextArtifactsAndExecutionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

clone()

public AddContextArtifactsAndExecutionsRequest.Builder clone()
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

getArtifacts(int index)

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) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The artifacts at the given index.

getArtifactsBytes(int index)

public 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) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the artifacts at the given index.

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) = { ... }

Returns
TypeDescription
int

The count of artifacts.

getArtifactsList()

public 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) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the artifacts.

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) = { ... }

Returns
TypeDescription
String

The context.

getContextBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for context.

getDefaultInstanceForType()

public AddContextArtifactsAndExecutionsRequest getDefaultInstanceForType()
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExecutions(int index)

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) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The executions at the given index.

getExecutionsBytes(int index)

public 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) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the executions at the given index.

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) = { ... }

Returns
TypeDescription
int

The count of executions.

getExecutionsList()

public 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) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the executions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AddContextArtifactsAndExecutionsRequest other)

public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(AddContextArtifactsAndExecutionsRequest other)
Parameter
NameDescription
otherAddContextArtifactsAndExecutionsRequest
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AddContextArtifactsAndExecutionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

setArtifacts(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The artifacts to set.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

setContext(String value)

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) = { ... }

Parameter
NameDescription
valueString

The context to set.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

setContextBytes(ByteString value)

public AddContextArtifactsAndExecutionsRequest.Builder setContextBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for context to set.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

setExecutions(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The executions to set.

Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AddContextArtifactsAndExecutionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AddContextArtifactsAndExecutionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AddContextArtifactsAndExecutionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AddContextArtifactsAndExecutionsRequest.Builder
Overrides