Class Metadata.Builder (0.51.0)

public static final class Metadata.Builder extends GeneratedMessageV3.Builder<Metadata.Builder> implements MetadataOrBuilder

Carries information about the pipeline execution that is returned in the long running operation's metadata field.

Protobuf type google.cloud.lifesciences.v2beta.Metadata

Implements

MetadataOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllEvents(Iterable<? extends Event> values)

public Metadata.Builder addAllEvents(Iterable<? extends Event> values)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.lifesciences.v2beta.Event>
Returns
Type Description
Metadata.Builder

addEvents(Event value)

public Metadata.Builder addEvents(Event value)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
value Event
Returns
Type Description
Metadata.Builder

addEvents(Event.Builder builderForValue)

public Metadata.Builder addEvents(Event.Builder builderForValue)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
builderForValue Event.Builder
Returns
Type Description
Metadata.Builder

addEvents(int index, Event value)

public Metadata.Builder addEvents(int index, Event value)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameters
Name Description
index int
value Event
Returns
Type Description
Metadata.Builder

addEvents(int index, Event.Builder builderForValue)

public Metadata.Builder addEvents(int index, Event.Builder builderForValue)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameters
Name Description
index int
builderForValue Event.Builder
Returns
Type Description
Metadata.Builder

addEventsBuilder()

public Event.Builder addEventsBuilder()

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Returns
Type Description
Event.Builder

addEventsBuilder(int index)

public Event.Builder addEventsBuilder(int index)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
index int
Returns
Type Description
Event.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Metadata build()
Returns
Type Description
Metadata

buildPartial()

public Metadata buildPartial()
Returns
Type Description
Metadata

clear()

public Metadata.Builder clear()
Returns
Type Description
Metadata.Builder
Overrides

clearCreateTime()

public Metadata.Builder clearCreateTime()

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Metadata.Builder

clearEndTime()

public Metadata.Builder clearEndTime()

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Metadata.Builder

clearEvents()

public Metadata.Builder clearEvents()

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Returns
Type Description
Metadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public Metadata.Builder clearLabels()
Returns
Type Description
Metadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPipeline()

public Metadata.Builder clearPipeline()

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Returns
Type Description
Metadata.Builder

clearPubSubTopic()

public Metadata.Builder clearPubSubTopic()

The name of the Cloud Pub/Sub topic where notifications of operation status changes are sent.

string pub_sub_topic = 7;

Returns
Type Description
Metadata.Builder

This builder for chaining.

clearStartTime()

public Metadata.Builder clearStartTime()

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Metadata.Builder

clone()

public Metadata.Builder clone()
Returns
Type Description
Metadata.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Metadata getDefaultInstanceForType()
Returns
Type Description
Metadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
TimestampOrBuilder

getEvents(int index)

public Event getEvents(int index)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
index int
Returns
Type Description
Event

getEventsBuilder(int index)

public Event.Builder getEventsBuilder(int index)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
index int
Returns
Type Description
Event.Builder

getEventsBuilderList()

public List<Event.Builder> getEventsBuilderList()

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Returns
Type Description
List<Builder>

getEventsCount()

public int getEventsCount()

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Returns
Type Description
int

getEventsList()

public List<Event> getEventsList()

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Returns
Type Description
List<Event>

getEventsOrBuilder(int index)

public EventOrBuilder getEventsOrBuilder(int index)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
index int
Returns
Type Description
EventOrBuilder

getEventsOrBuilderList()

public List<? extends EventOrBuilder> getEventsOrBuilderList()

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Returns
Type Description
List<? extends com.google.cloud.lifesciences.v2beta.EventOrBuilder>

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPipeline()

public Pipeline getPipeline()

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Returns
Type Description
Pipeline

The pipeline.

getPipelineBuilder()

public Pipeline.Builder getPipelineBuilder()

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Returns
Type Description
Pipeline.Builder

getPipelineOrBuilder()

public PipelineOrBuilder getPipelineOrBuilder()

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Returns
Type Description
PipelineOrBuilder

getPubSubTopic()

public String getPubSubTopic()

The name of the Cloud Pub/Sub topic where notifications of operation status changes are sent.

string pub_sub_topic = 7;

Returns
Type Description
String

The pubSubTopic.

getPubSubTopicBytes()

public ByteString getPubSubTopicBytes()

The name of the Cloud Pub/Sub topic where notifications of operation status changes are sent.

string pub_sub_topic = 7;

Returns
Type Description
ByteString

The bytes for pubSubTopic.

getStartTime()

public Timestamp getStartTime()

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
boolean

Whether the createTime field is set.

hasEndTime()

public boolean hasEndTime()

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
boolean

Whether the endTime field is set.

hasPipeline()

public boolean hasPipeline()

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Returns
Type Description
boolean

Whether the pipeline field is set.

hasStartTime()

public boolean hasStartTime()

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Metadata.Builder mergeCreateTime(Timestamp value)

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metadata.Builder

mergeEndTime(Timestamp value)

public Metadata.Builder mergeEndTime(Timestamp value)

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metadata.Builder

mergeFrom(Metadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePipeline(Pipeline value)

public Metadata.Builder mergePipeline(Pipeline value)

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Parameter
Name Description
value Pipeline
Returns
Type Description
Metadata.Builder

mergeStartTime(Timestamp value)

public Metadata.Builder mergeStartTime(Timestamp value)

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Metadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Metadata.Builder
Overrides

putAllLabels(Map<String,String> values)

public Metadata.Builder putAllLabels(Map<String,String> values)

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Metadata.Builder

putLabels(String key, String value)

public Metadata.Builder putLabels(String key, String value)

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
Metadata.Builder

removeEvents(int index)

public Metadata.Builder removeEvents(int index)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameter
Name Description
index int
Returns
Type Description
Metadata.Builder

removeLabels(String key)

public Metadata.Builder removeLabels(String key)

The user-defined labels associated with this operation.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
Metadata.Builder

setCreateTime(Timestamp value)

public Metadata.Builder setCreateTime(Timestamp value)

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Metadata.Builder setCreateTime(Timestamp.Builder builderForValue)

The time at which the operation was created by the API.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Metadata.Builder

setEndTime(Timestamp value)

public Metadata.Builder setEndTime(Timestamp value)

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metadata.Builder

setEndTime(Timestamp.Builder builderForValue)

public Metadata.Builder setEndTime(Timestamp.Builder builderForValue)

The time at which execution was completed and resources were cleaned up.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Metadata.Builder

setEvents(int index, Event value)

public Metadata.Builder setEvents(int index, Event value)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameters
Name Description
index int
value Event
Returns
Type Description
Metadata.Builder

setEvents(int index, Event.Builder builderForValue)

public Metadata.Builder setEvents(int index, Event.Builder builderForValue)

The list of events that have happened so far during the execution of this operation.

repeated .google.cloud.lifesciences.v2beta.Event events = 3;

Parameters
Name Description
index int
builderForValue Event.Builder
Returns
Type Description
Metadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPipeline(Pipeline value)

public Metadata.Builder setPipeline(Pipeline value)

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Parameter
Name Description
value Pipeline
Returns
Type Description
Metadata.Builder

setPipeline(Pipeline.Builder builderForValue)

public Metadata.Builder setPipeline(Pipeline.Builder builderForValue)

The pipeline this operation represents.

.google.cloud.lifesciences.v2beta.Pipeline pipeline = 1;

Parameter
Name Description
builderForValue Pipeline.Builder
Returns
Type Description
Metadata.Builder

setPubSubTopic(String value)

public Metadata.Builder setPubSubTopic(String value)

The name of the Cloud Pub/Sub topic where notifications of operation status changes are sent.

string pub_sub_topic = 7;

Parameter
Name Description
value String

The pubSubTopic to set.

Returns
Type Description
Metadata.Builder

This builder for chaining.

setPubSubTopicBytes(ByteString value)

public Metadata.Builder setPubSubTopicBytes(ByteString value)

The name of the Cloud Pub/Sub topic where notifications of operation status changes are sent.

string pub_sub_topic = 7;

Parameter
Name Description
value ByteString

The bytes for pubSubTopic to set.

Returns
Type Description
Metadata.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public Metadata.Builder setStartTime(Timestamp value)

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public Metadata.Builder setStartTime(Timestamp.Builder builderForValue)

The first time at which resources were allocated to execute the pipeline.

.google.protobuf.Timestamp start_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Metadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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