Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllArtifacts(Iterable<String> values) The resource names of the Artifacts to attribute to the Context.addAllExecutions(Iterable<String> values) The resource names of the Executions to associate with the Context.addArtifacts(String value) The resource names of the Artifacts to attribute to the Context.addArtifactsBytes(com.google.protobuf.ByteString value) The resource names of the Artifacts to attribute to the Context.addExecutions(String value) The resource names of the Executions to associate with the Context.addExecutionsBytes(com.google.protobuf.ByteString value) The resource names of the Executions to associate with the Context.build()clear()The resource names of the Artifacts to attribute to the Context.Required.The resource names of the Executions to associate with the Context.getArtifacts(int index) The resource names of the Artifacts to attribute to the Context.com.google.protobuf.ByteStringgetArtifactsBytes(int index) The resource names of the Artifacts to attribute to the Context.intThe resource names of the Artifacts to attribute to the Context.com.google.protobuf.ProtocolStringListThe resource names of the Artifacts to attribute to the Context.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExecutions(int index) The resource names of the Executions to associate with the Context.com.google.protobuf.ByteStringgetExecutionsBytes(int index) The resource names of the Executions to associate with the Context.intThe resource names of the Executions to associate with the Context.com.google.protobuf.ProtocolStringListThe resource names of the Executions to associate with the Context.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setArtifacts(int index, String value) The resource names of the Artifacts to attribute to the Context.setContext(String value) Required.setContextBytes(com.google.protobuf.ByteString value) Required.setExecutions(int index, String value) The resource names of the Executions to associate with the Context.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
mergeFrom
public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(AddContextArtifactsAndExecutionsRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AddContextArtifactsAndExecutionsRequest.Builder>- Throws:
IOException
-
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:
getContextin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- 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:
getContextBytesin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- 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:
getArtifactsListin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- 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:
getArtifactsCountin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- Returns:
- The count of artifacts.
-
getArtifacts
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:
getArtifactsin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- 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:
getArtifactsBytesin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the artifacts at the given index.
-
setArtifacts
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:
getExecutionsListin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- 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:
getExecutionsCountin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- Returns:
- The count of executions.
-
getExecutions
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:
getExecutionsin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- 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:
getExecutionsBytesin interfaceAddContextArtifactsAndExecutionsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the executions at the given index.
-
setExecutions
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.
-