Class SessionEvent.Builder (1.1.2)

public static final class SessionEvent.Builder extends GeneratedMessageV3.Builder<SessionEvent.Builder> implements SessionEventOrBuilder

These messages contain information about sessions within an environment. The monitored resource is 'Environment'.

Protobuf type google.cloud.dataplex.v1.SessionEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SessionEvent build()
Returns
TypeDescription
SessionEvent

buildPartial()

public SessionEvent buildPartial()
Returns
TypeDescription
SessionEvent

clear()

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

clearDetail()

public SessionEvent.Builder clearDetail()
Returns
TypeDescription
SessionEvent.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public SessionEvent.Builder clearMessage()

The log message.

string message = 1;

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuery()

public SessionEvent.Builder clearQuery()

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Returns
TypeDescription
SessionEvent.Builder

clearSessionId()

public SessionEvent.Builder clearSessionId()

Unique identifier for the session.

string session_id = 3;

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

clearType()

public SessionEvent.Builder clearType()

The type of the event.

.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

clearUserId()

public SessionEvent.Builder clearUserId()

The information about the user that created the session.

string user_id = 2;

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SessionEvent getDefaultInstanceForType()
Returns
TypeDescription
SessionEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetailCase()

public SessionEvent.DetailCase getDetailCase()
Returns
TypeDescription
SessionEvent.DetailCase

getMessage()

public String getMessage()

The log message.

string message = 1;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The log message.

string message = 1;

Returns
TypeDescription
ByteString

The bytes for message.

getQuery()

public SessionEvent.QueryDetail getQuery()

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Returns
TypeDescription
SessionEvent.QueryDetail

The query.

getQueryBuilder()

public SessionEvent.QueryDetail.Builder getQueryBuilder()

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Returns
TypeDescription
SessionEvent.QueryDetail.Builder

getQueryOrBuilder()

public SessionEvent.QueryDetailOrBuilder getQueryOrBuilder()

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Returns
TypeDescription
SessionEvent.QueryDetailOrBuilder

getSessionId()

public String getSessionId()

Unique identifier for the session.

string session_id = 3;

Returns
TypeDescription
String

The sessionId.

getSessionIdBytes()

public ByteString getSessionIdBytes()

Unique identifier for the session.

string session_id = 3;

Returns
TypeDescription
ByteString

The bytes for sessionId.

getType()

public SessionEvent.EventType getType()

The type of the event.

.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;

Returns
TypeDescription
SessionEvent.EventType

The type.

getTypeValue()

public int getTypeValue()

The type of the event.

.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUserId()

public String getUserId()

The information about the user that created the session.

string user_id = 2;

Returns
TypeDescription
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

The information about the user that created the session.

string user_id = 2;

Returns
TypeDescription
ByteString

The bytes for userId.

hasQuery()

public boolean hasQuery()

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Returns
TypeDescription
boolean

Whether the query field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SessionEvent other)

public SessionEvent.Builder mergeFrom(SessionEvent other)
Parameter
NameDescription
otherSessionEvent
Returns
TypeDescription
SessionEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuery(SessionEvent.QueryDetail value)

public SessionEvent.Builder mergeQuery(SessionEvent.QueryDetail value)

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Parameter
NameDescription
valueSessionEvent.QueryDetail
Returns
TypeDescription
SessionEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public SessionEvent.Builder setMessage(String value)

The log message.

string message = 1;

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public SessionEvent.Builder setMessageBytes(ByteString value)

The log message.

string message = 1;

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

setQuery(SessionEvent.QueryDetail value)

public SessionEvent.Builder setQuery(SessionEvent.QueryDetail value)

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Parameter
NameDescription
valueSessionEvent.QueryDetail
Returns
TypeDescription
SessionEvent.Builder

setQuery(SessionEvent.QueryDetail.Builder builderForValue)

public SessionEvent.Builder setQuery(SessionEvent.QueryDetail.Builder builderForValue)

The execution details of the query.

.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;

Parameter
NameDescription
builderForValueSessionEvent.QueryDetail.Builder
Returns
TypeDescription
SessionEvent.Builder

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

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

setSessionId(String value)

public SessionEvent.Builder setSessionId(String value)

Unique identifier for the session.

string session_id = 3;

Parameter
NameDescription
valueString

The sessionId to set.

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

setSessionIdBytes(ByteString value)

public SessionEvent.Builder setSessionIdBytes(ByteString value)

Unique identifier for the session.

string session_id = 3;

Parameter
NameDescription
valueByteString

The bytes for sessionId to set.

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

setType(SessionEvent.EventType value)

public SessionEvent.Builder setType(SessionEvent.EventType value)

The type of the event.

.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;

Parameter
NameDescription
valueSessionEvent.EventType

The type to set.

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

setTypeValue(int value)

public SessionEvent.Builder setTypeValue(int value)

The type of the event.

.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserId(String value)

public SessionEvent.Builder setUserId(String value)

The information about the user that created the session.

string user_id = 2;

Parameter
NameDescription
valueString

The userId to set.

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.

setUserIdBytes(ByteString value)

public SessionEvent.Builder setUserIdBytes(ByteString value)

The information about the user that created the session.

string user_id = 2;

Parameter
NameDescription
valueByteString

The bytes for userId to set.

Returns
TypeDescription
SessionEvent.Builder

This builder for chaining.