Package com.google.cloud.dataplex.v1
Class SessionEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
- com.google.cloud.dataplex.v1.SessionEvent.Builder
-
- All Implemented Interfaces:
SessionEventOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SessionEvent
public static final class SessionEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder> implements SessionEventOrBuilder
These messages contain information about sessions within an environment. The monitored resource is 'Environment'.
Protobuf typegoogle.cloud.dataplex.v1.SessionEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionEvent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SessionEvent
build()
SessionEvent
buildPartial()
SessionEvent.Builder
clear()
SessionEvent.Builder
clearDetail()
SessionEvent.Builder
clearEventSucceeded()
The status of the event.SessionEvent.Builder
clearFastStartupEnabled()
If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.SessionEvent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SessionEvent.Builder
clearMessage()
The log message.SessionEvent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SessionEvent.Builder
clearQuery()
The execution details of the query.SessionEvent.Builder
clearSessionId()
Unique identifier for the session.SessionEvent.Builder
clearType()
The type of the event.SessionEvent.Builder
clearUnassignedDuration()
The idle duration of a warm pooled session before it is assigned to user.SessionEvent.Builder
clearUserId()
The information about the user that created the session.SessionEvent.Builder
clone()
SessionEvent
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
SessionEvent.DetailCase
getDetailCase()
boolean
getEventSucceeded()
The status of the event.boolean
getFastStartupEnabled()
If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.String
getMessage()
The log message.com.google.protobuf.ByteString
getMessageBytes()
The log message.SessionEvent.QueryDetail
getQuery()
The execution details of the query.SessionEvent.QueryDetail.Builder
getQueryBuilder()
The execution details of the query.SessionEvent.QueryDetailOrBuilder
getQueryOrBuilder()
The execution details of the query.String
getSessionId()
Unique identifier for the session.com.google.protobuf.ByteString
getSessionIdBytes()
Unique identifier for the session.SessionEvent.EventType
getType()
The type of the event.int
getTypeValue()
The type of the event.com.google.protobuf.Duration
getUnassignedDuration()
The idle duration of a warm pooled session before it is assigned to user.com.google.protobuf.Duration.Builder
getUnassignedDurationBuilder()
The idle duration of a warm pooled session before it is assigned to user.com.google.protobuf.DurationOrBuilder
getUnassignedDurationOrBuilder()
The idle duration of a warm pooled session before it is assigned to user.String
getUserId()
The information about the user that created the session.com.google.protobuf.ByteString
getUserIdBytes()
The information about the user that created the session.boolean
hasQuery()
The execution details of the query.boolean
hasUnassignedDuration()
The idle duration of a warm pooled session before it is assigned to user.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SessionEvent.Builder
mergeFrom(SessionEvent other)
SessionEvent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SessionEvent.Builder
mergeFrom(com.google.protobuf.Message other)
SessionEvent.Builder
mergeQuery(SessionEvent.QueryDetail value)
The execution details of the query.SessionEvent.Builder
mergeUnassignedDuration(com.google.protobuf.Duration value)
The idle duration of a warm pooled session before it is assigned to user.SessionEvent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SessionEvent.Builder
setEventSucceeded(boolean value)
The status of the event.SessionEvent.Builder
setFastStartupEnabled(boolean value)
If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.SessionEvent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SessionEvent.Builder
setMessage(String value)
The log message.SessionEvent.Builder
setMessageBytes(com.google.protobuf.ByteString value)
The log message.SessionEvent.Builder
setQuery(SessionEvent.QueryDetail value)
The execution details of the query.SessionEvent.Builder
setQuery(SessionEvent.QueryDetail.Builder builderForValue)
The execution details of the query.SessionEvent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SessionEvent.Builder
setSessionId(String value)
Unique identifier for the session.SessionEvent.Builder
setSessionIdBytes(com.google.protobuf.ByteString value)
Unique identifier for the session.SessionEvent.Builder
setType(SessionEvent.EventType value)
The type of the event.SessionEvent.Builder
setTypeValue(int value)
The type of the event.SessionEvent.Builder
setUnassignedDuration(com.google.protobuf.Duration value)
The idle duration of a warm pooled session before it is assigned to user.SessionEvent.Builder
setUnassignedDuration(com.google.protobuf.Duration.Builder builderForValue)
The idle duration of a warm pooled session before it is assigned to user.SessionEvent.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SessionEvent.Builder
setUserId(String value)
The information about the user that created the session.SessionEvent.Builder
setUserIdBytes(com.google.protobuf.ByteString value)
The information about the user that created the session.-
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<SessionEvent.Builder>
-
clear
public SessionEvent.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<SessionEvent.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<SessionEvent.Builder>
-
getDefaultInstanceForType
public SessionEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SessionEvent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SessionEvent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SessionEvent.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<SessionEvent.Builder>
-
setField
public SessionEvent.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<SessionEvent.Builder>
-
clearField
public SessionEvent.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<SessionEvent.Builder>
-
clearOneof
public SessionEvent.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<SessionEvent.Builder>
-
setRepeatedField
public SessionEvent.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<SessionEvent.Builder>
-
addRepeatedField
public SessionEvent.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<SessionEvent.Builder>
-
mergeFrom
public SessionEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>
-
mergeFrom
public SessionEvent.Builder mergeFrom(SessionEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
mergeFrom
public SessionEvent.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<SessionEvent.Builder>
- Throws:
IOException
-
getDetailCase
public SessionEvent.DetailCase getDetailCase()
- Specified by:
getDetailCase
in interfaceSessionEventOrBuilder
-
clearDetail
public SessionEvent.Builder clearDetail()
-
getMessage
public String getMessage()
The log message.
string message = 1;
- Specified by:
getMessage
in interfaceSessionEventOrBuilder
- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
The log message.
string message = 1;
- Specified by:
getMessageBytes
in interfaceSessionEventOrBuilder
- Returns:
- The bytes for message.
-
setMessage
public SessionEvent.Builder setMessage(String value)
The log message.
string message = 1;
- Parameters:
value
- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
public SessionEvent.Builder clearMessage()
The log message.
string message = 1;
- Returns:
- This builder for chaining.
-
setMessageBytes
public SessionEvent.Builder setMessageBytes(com.google.protobuf.ByteString value)
The log message.
string message = 1;
- Parameters:
value
- The bytes for message to set.- Returns:
- This builder for chaining.
-
getUserId
public String getUserId()
The information about the user that created the session. It will be the email address of the user.
string user_id = 2;
- Specified by:
getUserId
in interfaceSessionEventOrBuilder
- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()
The information about the user that created the session. It will be the email address of the user.
string user_id = 2;
- Specified by:
getUserIdBytes
in interfaceSessionEventOrBuilder
- Returns:
- The bytes for userId.
-
setUserId
public SessionEvent.Builder setUserId(String value)
The information about the user that created the session. It will be the email address of the user.
string user_id = 2;
- Parameters:
value
- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
public SessionEvent.Builder clearUserId()
The information about the user that created the session. It will be the email address of the user.
string user_id = 2;
- Returns:
- This builder for chaining.
-
setUserIdBytes
public SessionEvent.Builder setUserIdBytes(com.google.protobuf.ByteString value)
The information about the user that created the session. It will be the email address of the user.
string user_id = 2;
- Parameters:
value
- The bytes for userId to set.- Returns:
- This builder for chaining.
-
getSessionId
public String getSessionId()
Unique identifier for the session.
string session_id = 3;
- Specified by:
getSessionId
in interfaceSessionEventOrBuilder
- Returns:
- The sessionId.
-
getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
Unique identifier for the session.
string session_id = 3;
- Specified by:
getSessionIdBytes
in interfaceSessionEventOrBuilder
- Returns:
- The bytes for sessionId.
-
setSessionId
public SessionEvent.Builder setSessionId(String value)
Unique identifier for the session.
string session_id = 3;
- Parameters:
value
- The sessionId to set.- Returns:
- This builder for chaining.
-
clearSessionId
public SessionEvent.Builder clearSessionId()
Unique identifier for the session.
string session_id = 3;
- Returns:
- This builder for chaining.
-
setSessionIdBytes
public SessionEvent.Builder setSessionIdBytes(com.google.protobuf.ByteString value)
Unique identifier for the session.
string session_id = 3;
- Parameters:
value
- The bytes for sessionId to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
The type of the event.
.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;
- Specified by:
getTypeValue
in interfaceSessionEventOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public SessionEvent.Builder setTypeValue(int value)
The type of the event.
.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public SessionEvent.EventType getType()
The type of the event.
.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;
- Specified by:
getType
in interfaceSessionEventOrBuilder
- Returns:
- The type.
-
setType
public SessionEvent.Builder setType(SessionEvent.EventType value)
The type of the event.
.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public SessionEvent.Builder clearType()
The type of the event.
.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;
- Returns:
- This builder for chaining.
-
hasQuery
public boolean hasQuery()
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
- Specified by:
hasQuery
in interfaceSessionEventOrBuilder
- Returns:
- Whether the query field is set.
-
getQuery
public SessionEvent.QueryDetail getQuery()
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
- Specified by:
getQuery
in interfaceSessionEventOrBuilder
- Returns:
- The query.
-
setQuery
public SessionEvent.Builder setQuery(SessionEvent.QueryDetail value)
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
-
setQuery
public SessionEvent.Builder setQuery(SessionEvent.QueryDetail.Builder builderForValue)
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
-
mergeQuery
public SessionEvent.Builder mergeQuery(SessionEvent.QueryDetail value)
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
-
clearQuery
public SessionEvent.Builder clearQuery()
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
-
getQueryBuilder
public SessionEvent.QueryDetail.Builder getQueryBuilder()
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
-
getQueryOrBuilder
public SessionEvent.QueryDetailOrBuilder getQueryOrBuilder()
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;
- Specified by:
getQueryOrBuilder
in interfaceSessionEventOrBuilder
-
getEventSucceeded
public boolean getEventSucceeded()
The status of the event.
bool event_succeeded = 6;
- Specified by:
getEventSucceeded
in interfaceSessionEventOrBuilder
- Returns:
- The eventSucceeded.
-
setEventSucceeded
public SessionEvent.Builder setEventSucceeded(boolean value)
The status of the event.
bool event_succeeded = 6;
- Parameters:
value
- The eventSucceeded to set.- Returns:
- This builder for chaining.
-
clearEventSucceeded
public SessionEvent.Builder clearEventSucceeded()
The status of the event.
bool event_succeeded = 6;
- Returns:
- This builder for chaining.
-
getFastStartupEnabled
public boolean getFastStartupEnabled()
If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.
bool fast_startup_enabled = 7;
- Specified by:
getFastStartupEnabled
in interfaceSessionEventOrBuilder
- Returns:
- The fastStartupEnabled.
-
setFastStartupEnabled
public SessionEvent.Builder setFastStartupEnabled(boolean value)
If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.
bool fast_startup_enabled = 7;
- Parameters:
value
- The fastStartupEnabled to set.- Returns:
- This builder for chaining.
-
clearFastStartupEnabled
public SessionEvent.Builder clearFastStartupEnabled()
If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.
bool fast_startup_enabled = 7;
- Returns:
- This builder for chaining.
-
hasUnassignedDuration
public boolean hasUnassignedDuration()
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
- Specified by:
hasUnassignedDuration
in interfaceSessionEventOrBuilder
- Returns:
- Whether the unassignedDuration field is set.
-
getUnassignedDuration
public com.google.protobuf.Duration getUnassignedDuration()
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
- Specified by:
getUnassignedDuration
in interfaceSessionEventOrBuilder
- Returns:
- The unassignedDuration.
-
setUnassignedDuration
public SessionEvent.Builder setUnassignedDuration(com.google.protobuf.Duration value)
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
-
setUnassignedDuration
public SessionEvent.Builder setUnassignedDuration(com.google.protobuf.Duration.Builder builderForValue)
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
-
mergeUnassignedDuration
public SessionEvent.Builder mergeUnassignedDuration(com.google.protobuf.Duration value)
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
-
clearUnassignedDuration
public SessionEvent.Builder clearUnassignedDuration()
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
-
getUnassignedDurationBuilder
public com.google.protobuf.Duration.Builder getUnassignedDurationBuilder()
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
-
getUnassignedDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getUnassignedDurationOrBuilder()
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8;
- Specified by:
getUnassignedDurationOrBuilder
in interfaceSessionEventOrBuilder
-
setUnknownFields
public final SessionEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
mergeUnknownFields
public final SessionEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
-