Class SessionOperationMetadata.Builder (4.32.0)

public static final class SessionOperationMetadata.Builder extends GeneratedMessageV3.Builder<SessionOperationMetadata.Builder> implements SessionOperationMetadataOrBuilder

Metadata describing the Session operation.

Protobuf type google.cloud.dataproc.v1.SessionOperationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllWarnings(Iterable<String> values)

public SessionOperationMetadata.Builder addAllWarnings(Iterable<String> values)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
valuesIterable<String>

The warnings to add.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SessionOperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

addWarnings(String value)

public SessionOperationMetadata.Builder addWarnings(String value)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
valueString

The warnings to add.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

addWarningsBytes(ByteString value)

public SessionOperationMetadata.Builder addWarningsBytes(ByteString value)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
valueByteString

The bytes of the warnings to add.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

build()

public SessionOperationMetadata build()
Returns
TypeDescription
SessionOperationMetadata

buildPartial()

public SessionOperationMetadata buildPartial()
Returns
TypeDescription
SessionOperationMetadata

clear()

public SessionOperationMetadata.Builder clear()
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

clearCreateTime()

public SessionOperationMetadata.Builder clearCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
SessionOperationMetadata.Builder

clearDescription()

public SessionOperationMetadata.Builder clearDescription()

Short description of the operation.

string description = 7;

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

clearDoneTime()

public SessionOperationMetadata.Builder clearDoneTime()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
SessionOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public SessionOperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

clearLabels()

public SessionOperationMetadata.Builder clearLabels()
Returns
TypeDescription
SessionOperationMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SessionOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

clearOperationType()

public SessionOperationMetadata.Builder clearOperationType()

The operation type.

.google.cloud.dataproc.v1.SessionOperationMetadata.SessionOperationType operation_type = 6;

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

clearSession()

public SessionOperationMetadata.Builder clearSession()

Name of the session for the operation.

string session = 1;

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

clearSessionUuid()

public SessionOperationMetadata.Builder clearSessionUuid()

Session UUID for the operation.

string session_uuid = 2;

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

clearWarnings()

public SessionOperationMetadata.Builder clearWarnings()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

clone()

public SessionOperationMetadata.Builder clone()
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public SessionOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
SessionOperationMetadata

getDescription()

public String getDescription()

Short description of the operation.

string description = 7;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description of the operation.

string description = 7;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDoneTime()

public Timestamp getDoneTime()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
Timestamp

The doneTime.

getDoneTimeBuilder()

public Timestamp.Builder getDoneTimeBuilder()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
Builder

getDoneTimeOrBuilder()

public TimestampOrBuilder getDoneTimeOrBuilder()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with the operation.

map<string, string> labels = 8;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getOperationType()

public SessionOperationMetadata.SessionOperationType getOperationType()

The operation type.

.google.cloud.dataproc.v1.SessionOperationMetadata.SessionOperationType operation_type = 6;

Returns
TypeDescription
SessionOperationMetadata.SessionOperationType

The operationType.

getOperationTypeValue()

public int getOperationTypeValue()

The operation type.

.google.cloud.dataproc.v1.SessionOperationMetadata.SessionOperationType operation_type = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for operationType.

getSession()

public String getSession()

Name of the session for the operation.

string session = 1;

Returns
TypeDescription
String

The session.

getSessionBytes()

public ByteString getSessionBytes()

Name of the session for the operation.

string session = 1;

Returns
TypeDescription
ByteString

The bytes for session.

getSessionUuid()

public String getSessionUuid()

Session UUID for the operation.

string session_uuid = 2;

Returns
TypeDescription
String

The sessionUuid.

getSessionUuidBytes()

public ByteString getSessionUuidBytes()

Session UUID for the operation.

string session_uuid = 2;

Returns
TypeDescription
ByteString

The bytes for sessionUuid.

getWarnings(int index)

public String getWarnings(int index)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The warnings at the given index.

getWarningsBytes(int index)

public ByteString getWarningsBytes(int index)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the warnings at the given index.

getWarningsCount()

public int getWarningsCount()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
TypeDescription
int

The count of warnings.

getWarningsList()

public ProtocolStringList getWarningsList()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
TypeDescription
ProtocolStringList

A list containing the warnings.

hasCreateTime()

public boolean hasCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDoneTime()

public boolean hasDoneTime()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
boolean

Whether the doneTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public SessionOperationMetadata.Builder mergeCreateTime(Timestamp value)

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionOperationMetadata.Builder

mergeDoneTime(Timestamp value)

public SessionOperationMetadata.Builder mergeDoneTime(Timestamp value)

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionOperationMetadata.Builder

mergeFrom(SessionOperationMetadata other)

public SessionOperationMetadata.Builder mergeFrom(SessionOperationMetadata other)
Parameter
NameDescription
otherSessionOperationMetadata
Returns
TypeDescription
SessionOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SessionOperationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SessionOperationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SessionOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

putAllLabels(Map<String,String> values)

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

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
SessionOperationMetadata.Builder

putLabels(String key, String value)

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

Labels associated with the operation.

map<string, string> labels = 8;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
SessionOperationMetadata.Builder

removeLabels(String key)

public SessionOperationMetadata.Builder removeLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
SessionOperationMetadata.Builder

setCreateTime(Timestamp value)

public SessionOperationMetadata.Builder setCreateTime(Timestamp value)

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionOperationMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SessionOperationMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SessionOperationMetadata.Builder

setDescription(String value)

public SessionOperationMetadata.Builder setDescription(String value)

Short description of the operation.

string description = 7;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SessionOperationMetadata.Builder setDescriptionBytes(ByteString value)

Short description of the operation.

string description = 7;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

setDoneTime(Timestamp value)

public SessionOperationMetadata.Builder setDoneTime(Timestamp value)

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SessionOperationMetadata.Builder

setDoneTime(Timestamp.Builder builderForValue)

public SessionOperationMetadata.Builder setDoneTime(Timestamp.Builder builderForValue)

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SessionOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SessionOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

setOperationType(SessionOperationMetadata.SessionOperationType value)

public SessionOperationMetadata.Builder setOperationType(SessionOperationMetadata.SessionOperationType value)

The operation type.

.google.cloud.dataproc.v1.SessionOperationMetadata.SessionOperationType operation_type = 6;

Parameter
NameDescription
valueSessionOperationMetadata.SessionOperationType

The operationType to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

setOperationTypeValue(int value)

public SessionOperationMetadata.Builder setOperationTypeValue(int value)

The operation type.

.google.cloud.dataproc.v1.SessionOperationMetadata.SessionOperationType operation_type = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for operationType to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

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

public SessionOperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

setSession(String value)

public SessionOperationMetadata.Builder setSession(String value)

Name of the session for the operation.

string session = 1;

Parameter
NameDescription
valueString

The session to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

setSessionBytes(ByteString value)

public SessionOperationMetadata.Builder setSessionBytes(ByteString value)

Name of the session for the operation.

string session = 1;

Parameter
NameDescription
valueByteString

The bytes for session to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

setSessionUuid(String value)

public SessionOperationMetadata.Builder setSessionUuid(String value)

Session UUID for the operation.

string session_uuid = 2;

Parameter
NameDescription
valueString

The sessionUuid to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

setSessionUuidBytes(ByteString value)

public SessionOperationMetadata.Builder setSessionUuidBytes(ByteString value)

Session UUID for the operation.

string session_uuid = 2;

Parameter
NameDescription
valueByteString

The bytes for sessionUuid to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SessionOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SessionOperationMetadata.Builder
Overrides

setWarnings(int index, String value)

public SessionOperationMetadata.Builder setWarnings(int index, String value)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The warnings to set.

Returns
TypeDescription
SessionOperationMetadata.Builder

This builder for chaining.