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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder> implements AddContextArtifactsAndExecutionsRequestOrBuilder
Request message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions].
Protobuf typegoogle.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddContextArtifactsAndExecutionsRequest.Builder
addAllArtifacts(Iterable<String> values)
The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.Builder
addAllExecutions(Iterable<String> values)
The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.Builder
addArtifacts(String value)
The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.Builder
addArtifactsBytes(com.google.protobuf.ByteString value)
The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.Builder
addExecutions(String value)
The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.Builder
addExecutionsBytes(com.google.protobuf.ByteString value)
The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AddContextArtifactsAndExecutionsRequest
build()
AddContextArtifactsAndExecutionsRequest
buildPartial()
AddContextArtifactsAndExecutionsRequest.Builder
clear()
AddContextArtifactsAndExecutionsRequest.Builder
clearArtifacts()
The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.Builder
clearContext()
Required.AddContextArtifactsAndExecutionsRequest.Builder
clearExecutions()
The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AddContextArtifactsAndExecutionsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AddContextArtifactsAndExecutionsRequest.Builder
clone()
String
getArtifacts(int index)
The resource names of the Artifacts to attribute to the Context.com.google.protobuf.ByteString
getArtifactsBytes(int index)
The resource names of the Artifacts to attribute to the Context.int
getArtifactsCount()
The resource names of the Artifacts to attribute to the Context.com.google.protobuf.ProtocolStringList
getArtifactsList()
The resource names of the Artifacts to attribute to the Context.String
getContext()
Required.com.google.protobuf.ByteString
getContextBytes()
Required.AddContextArtifactsAndExecutionsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getExecutions(int index)
The resource names of the Executions to associate with the Context.com.google.protobuf.ByteString
getExecutionsBytes(int index)
The resource names of the Executions to associate with the Context.int
getExecutionsCount()
The resource names of the Executions to associate with the Context.com.google.protobuf.ProtocolStringList
getExecutionsList()
The resource names of the Executions to associate with the Context.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AddContextArtifactsAndExecutionsRequest.Builder
mergeFrom(AddContextArtifactsAndExecutionsRequest other)
AddContextArtifactsAndExecutionsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AddContextArtifactsAndExecutionsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
AddContextArtifactsAndExecutionsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AddContextArtifactsAndExecutionsRequest.Builder
setArtifacts(int index, String value)
The resource names of the Artifacts to attribute to the Context.AddContextArtifactsAndExecutionsRequest.Builder
setContext(String value)
Required.AddContextArtifactsAndExecutionsRequest.Builder
setContextBytes(com.google.protobuf.ByteString value)
Required.AddContextArtifactsAndExecutionsRequest.Builder
setExecutions(int index, String value)
The resource names of the Executions to associate with the Context.AddContextArtifactsAndExecutionsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AddContextArtifactsAndExecutionsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AddContextArtifactsAndExecutionsRequest.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
clear
public AddContextArtifactsAndExecutionsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
getDefaultInstanceForType
public AddContextArtifactsAndExecutionsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddContextArtifactsAndExecutionsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddContextArtifactsAndExecutionsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddContextArtifactsAndExecutionsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
setField
public AddContextArtifactsAndExecutionsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
clearField
public AddContextArtifactsAndExecutionsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
clearOneof
public AddContextArtifactsAndExecutionsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
setRepeatedField
public AddContextArtifactsAndExecutionsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
addRepeatedField
public AddContextArtifactsAndExecutionsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
mergeFrom
public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
mergeFrom
public AddContextArtifactsAndExecutionsRequest.Builder mergeFrom(AddContextArtifactsAndExecutionsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getContext
in 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:
getContextBytes
in 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:
getArtifactsList
in 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:
getArtifactsCount
in 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:
getArtifacts
in 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:
getArtifactsBytes
in 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:
getExecutionsList
in 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:
getExecutionsCount
in 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:
getExecutions
in 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:
getExecutionsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
mergeUnknownFields
public final AddContextArtifactsAndExecutionsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddContextArtifactsAndExecutionsRequest.Builder>
-
-