Class AddContextArtifactsAndExecutionsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
- com.google.cloud.aiplatform.v1beta1.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.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder> implements AddContextArtifactsAndExecutionsRequestOrBuilder
Request message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions].
Protobuf typegoogle.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddContextArtifactsAndExecutionsRequest.BuilderaddAllArtifacts(Iterable<String> values)The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.BuilderaddAllExecutions(Iterable<String> values)The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.BuilderaddArtifacts(String value)The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.BuilderaddArtifactsBytes(com.google.protobuf.ByteString value)The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.BuilderaddExecutions(String value)The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.BuilderaddExecutionsBytes(com.google.protobuf.ByteString value)The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddContextArtifactsAndExecutionsRequestbuild()AddContextArtifactsAndExecutionsRequestbuildPartial()AddContextArtifactsAndExecutionsRequest.Builderclear()AddContextArtifactsAndExecutionsRequest.BuilderclearArtifacts()The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.BuilderclearContext()Required.AddContextArtifactsAndExecutionsRequest.BuilderclearExecutions()The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AddContextArtifactsAndExecutionsRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AddContextArtifactsAndExecutionsRequest.Builderclone()StringgetArtifacts(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.intgetArtifactsCount()The resource names of the Artifacts to attribute to the Context.com.google.protobuf.ProtocolStringListgetArtifactsList()The resource names of the Artifacts to attribute to the Context.StringgetContext()Required.com.google.protobuf.ByteStringgetContextBytes()Required.AddContextArtifactsAndExecutionsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetExecutions(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.intgetExecutionsCount()The resource names of the Executions to associate with the Context.com.google.protobuf.ProtocolStringListgetExecutionsList()The resource names of the Executions to associate with the Context.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AddContextArtifactsAndExecutionsRequest.BuildermergeFrom(AddContextArtifactsAndExecutionsRequest other)AddContextArtifactsAndExecutionsRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AddContextArtifactsAndExecutionsRequest.BuildermergeFrom(com.google.protobuf.Message other)AddContextArtifactsAndExecutionsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AddContextArtifactsAndExecutionsRequest.BuildersetArtifacts(int index, String value)The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.BuildersetContext(String value)Required.AddContextArtifactsAndExecutionsRequest.BuildersetContextBytes(com.google.protobuf.ByteString value)Required.AddContextArtifactsAndExecutionsRequest.BuildersetExecutions(int index, String value)The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddContextArtifactsAndExecutionsRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AddContextArtifactsAndExecutionsRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
clear
public AddContextArtifactsAndExecutionsRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
getDefaultInstanceForType
public AddContextArtifactsAndExecutionsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddContextArtifactsAndExecutionsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddContextArtifactsAndExecutionsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddContextArtifactsAndExecutionsRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
setField
public AddContextArtifactsAndExecutionsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
clearField
public AddContextArtifactsAndExecutionsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
clearOneof
public AddContextArtifactsAndExecutionsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
setRepeatedField
public AddContextArtifactsAndExecutionsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
addRepeatedField
public AddContextArtifactsAndExecutionsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
mergeFrom
public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- 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.GeneratedMessageV3.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
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:
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
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:
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
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:
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
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:
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
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:
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
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.
-
setUnknownFields
public final AddContextArtifactsAndExecutionsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
mergeUnknownFields
public final AddContextArtifactsAndExecutionsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
-