Class AddContextArtifactsAndExecutionsRequest.Builder (3.46.0)

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

Request message for MetadataService.AddContextArtifactsAndExecutions.

Protobuf type google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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
Name Description
values Iterable<String>

The artifacts to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The executions to add.

Returns
Type Description
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
Name Description
value String

The artifacts to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the artifacts to add.

Returns
Type Description
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
Name Description
value String

The executions to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the executions to add.

Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AddContextArtifactsAndExecutionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

build()

public AddContextArtifactsAndExecutionsRequest build()
Returns
Type Description
AddContextArtifactsAndExecutionsRequest

buildPartial()

public AddContextArtifactsAndExecutionsRequest buildPartial()
Returns
Type Description
AddContextArtifactsAndExecutionsRequest

clear()

public AddContextArtifactsAndExecutionsRequest.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AddContextArtifactsAndExecutionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AddContextArtifactsAndExecutionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

clone()

public AddContextArtifactsAndExecutionsRequest.Builder clone()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for context.

getDefaultInstanceForType()

public AddContextArtifactsAndExecutionsRequest getDefaultInstanceForType()
Returns
Type Description
AddContextArtifactsAndExecutionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the executions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AddContextArtifactsAndExecutionsRequest other)

public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(AddContextArtifactsAndExecutionsRequest other)
Parameter
Name Description
other AddContextArtifactsAndExecutionsRequest
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AddContextArtifactsAndExecutionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The artifacts to set.

Returns
Type Description
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
Name Description
value String

The context to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for context to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The executions to set.

Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AddContextArtifactsAndExecutionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

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

public AddContextArtifactsAndExecutionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AddContextArtifactsAndExecutionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AddContextArtifactsAndExecutionsRequest.Builder
Overrides