Class SessionOperationMetadata.Builder (4.46.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
Type Description
Descriptor

Methods

addAllWarnings(Iterable<String> values)

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

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
Name Description
values Iterable<String>

The warnings to add.

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWarnings(String value)

public SessionOperationMetadata.Builder addWarnings(String value)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
Name Description
value String

The warnings to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the warnings to add.

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

build()

public SessionOperationMetadata build()
Returns
Type Description
SessionOperationMetadata

buildPartial()

public SessionOperationMetadata buildPartial()
Returns
Type Description
SessionOperationMetadata

clear()

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

clearCreateTime()

public SessionOperationMetadata.Builder clearCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
SessionOperationMetadata.Builder

clearDescription()

public SessionOperationMetadata.Builder clearDescription()

Short description of the operation.

string description = 7;

Returns
Type Description
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
Type Description
SessionOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperationType()

public SessionOperationMetadata.Builder clearOperationType()

The operation type.

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

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

clearSession()

public SessionOperationMetadata.Builder clearSession()

Name of the session for the operation.

string session = 1;

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

clearSessionUuid()

public SessionOperationMetadata.Builder clearSessionUuid()

Session UUID for the operation.

string session_uuid = 2;

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

clearWarnings()

public SessionOperationMetadata.Builder clearWarnings()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public SessionOperationMetadata getDefaultInstanceForType()
Returns
Type Description
SessionOperationMetadata

getDescription()

public String getDescription()

Short description of the operation.

string description = 7;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description of the operation.

string description = 7;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDoneTime()

public Timestamp getDoneTime()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
Timestamp

The doneTime.

getDoneTimeBuilder()

public Timestamp.Builder getDoneTimeBuilder()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
Builder

getDoneTimeOrBuilder()

public TimestampOrBuilder getDoneTimeOrBuilder()

The time when the operation was finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
TimestampOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with the operation.

map<string, string> labels = 8;

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>

getOperationType()

public SessionOperationMetadata.SessionOperationType getOperationType()

The operation type.

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

Returns
Type Description
SessionOperationMetadata.SessionOperationType

The operationType.

getOperationTypeValue()

public int getOperationTypeValue()

The operation type.

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

Returns
Type Description
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
Type Description
String

The session.

getSessionBytes()

public ByteString getSessionBytes()

Name of the session for the operation.

string session = 1;

Returns
Type Description
ByteString

The bytes for session.

getSessionUuid()

public String getSessionUuid()

Session UUID for the operation.

string session_uuid = 2;

Returns
Type Description
String

The sessionUuid.

getSessionUuidBytes()

public ByteString getSessionUuidBytes()

Session UUID for the operation.

string session_uuid = 2;

Returns
Type Description
ByteString

The bytes for sessionUuid.

getWarnings(int index)

public String getWarnings(int index)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the warnings at the given index.

getWarningsCount()

public int getWarningsCount()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
Type Description
int

The count of warnings.

getWarningsList()

public ProtocolStringList getWarningsList()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
Type Description
ProtocolStringList

A list containing the warnings.

hasCreateTime()

public boolean hasCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
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
Type Description
boolean

Whether the doneTime 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 SessionOperationMetadata.Builder mergeCreateTime(Timestamp value)

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
SessionOperationMetadata.Builder

mergeFrom(SessionOperationMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SessionOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
SessionOperationMetadata.Builder

removeLabels(String key)

public SessionOperationMetadata.Builder removeLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
SessionOperationMetadata.Builder

setDescription(String value)

public SessionOperationMetadata.Builder setDescription(String value)

Short description of the operation.

string description = 7;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SessionOperationMetadata.Builder setDescriptionBytes(ByteString value)

Short description of the operation.

string description = 7;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
SessionOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SessionOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value SessionOperationMetadata.SessionOperationType

The operationType to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SessionOperationMetadata.Builder
Overrides

setSession(String value)

public SessionOperationMetadata.Builder setSession(String value)

Name of the session for the operation.

string session = 1;

Parameter
Name Description
value String

The session to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for session to set.

Returns
Type Description
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
Name Description
value String

The sessionUuid to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for sessionUuid to set.

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SessionOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The warnings to set.

Returns
Type Description
SessionOperationMetadata.Builder

This builder for chaining.