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.GeneratedMessage.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.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The status of the event.If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.The log message.The execution details of the query.Unique identifier for the session.The type of the event.The idle duration of a warm pooled session before it is assigned to user.The information about the user that created the session.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanThe status of the event.booleanIf the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.The log message.com.google.protobuf.ByteStringThe log message.getQuery()The execution details of the query.The execution details of the query.The execution details of the query.Unique identifier for the session.com.google.protobuf.ByteStringUnique identifier for the session.getType()The type of the event.intThe type of the event.com.google.protobuf.DurationThe idle duration of a warm pooled session before it is assigned to user.com.google.protobuf.Duration.BuilderThe idle duration of a warm pooled session before it is assigned to user.com.google.protobuf.DurationOrBuilderThe idle duration of a warm pooled session before it is assigned to user.The information about the user that created the session.com.google.protobuf.ByteStringThe information about the user that created the session.booleanhasQuery()The execution details of the query.booleanThe idle duration of a warm pooled session before it is assigned to user.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SessionEvent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The execution details of the query.mergeUnassignedDuration(com.google.protobuf.Duration value) The idle duration of a warm pooled session before it is assigned to user.setEventSucceeded(boolean value) The status of the event.setFastStartupEnabled(boolean value) If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.setMessage(String value) The log message.setMessageBytes(com.google.protobuf.ByteString value) The log message.setQuery(SessionEvent.QueryDetail value) The execution details of the query.setQuery(SessionEvent.QueryDetail.Builder builderForValue) The execution details of the query.setSessionId(String value) Unique identifier for the session.setSessionIdBytes(com.google.protobuf.ByteString value) Unique identifier for the session.setType(SessionEvent.EventType value) The type of the event.setTypeValue(int value) The type of the event.setUnassignedDuration(com.google.protobuf.Duration value) The idle duration of a warm pooled session before it is assigned to user.setUnassignedDuration(com.google.protobuf.Duration.Builder builderForValue) The idle duration of a warm pooled session before it is assigned to user.The information about the user that created the session.setUserIdBytes(com.google.protobuf.ByteString value) The information about the user that created the session.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
-
mergeFrom
public SessionEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>- Throws:
IOException
-
getDetailCase
- Specified by:
getDetailCasein interfaceSessionEventOrBuilder
-
clearDetail
-
getMessage
The log message.
string message = 1;- Specified by:
getMessagein interfaceSessionEventOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()The log message.
string message = 1;- Specified by:
getMessageBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for message.
-
setMessage
The log message.
string message = 1;- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
The log message.
string message = 1;- Returns:
- This builder for chaining.
-
setMessageBytes
The log message.
string message = 1;- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
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:
getUserIdin 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:
getUserIdBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for userId.
-
setUserId
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
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
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
Unique identifier for the session.
string session_id = 3;- Specified by:
getSessionIdin interfaceSessionEventOrBuilder- Returns:
- The sessionId.
-
getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()Unique identifier for the session.
string session_id = 3;- Specified by:
getSessionIdBytesin interfaceSessionEventOrBuilder- Returns:
- The bytes for sessionId.
-
setSessionId
Unique identifier for the session.
string session_id = 3;- Parameters:
value- The sessionId to set.- Returns:
- This builder for chaining.
-
clearSessionId
Unique identifier for the session.
string session_id = 3;- Returns:
- This builder for chaining.
-
setSessionIdBytes
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:
getTypeValuein interfaceSessionEventOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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
The type of the event.
.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;- Specified by:
getTypein interfaceSessionEventOrBuilder- Returns:
- The type.
-
setType
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
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:
hasQueryin interfaceSessionEventOrBuilder- Returns:
- Whether the query field is set.
-
getQuery
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;- Specified by:
getQueryin interfaceSessionEventOrBuilder- Returns:
- The query.
-
setQuery
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; -
setQuery
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; -
mergeQuery
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; -
clearQuery
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; -
getQueryBuilder
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; -
getQueryOrBuilder
The execution details of the query.
.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;- Specified by:
getQueryOrBuilderin interfaceSessionEventOrBuilder
-
getEventSucceeded
public boolean getEventSucceeded()The status of the event.
bool event_succeeded = 6;- Specified by:
getEventSucceededin interfaceSessionEventOrBuilder- Returns:
- The eventSucceeded.
-
setEventSucceeded
The status of the event.
bool event_succeeded = 6;- Parameters:
value- The eventSucceeded to set.- Returns:
- This builder for chaining.
-
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:
getFastStartupEnabledin interfaceSessionEventOrBuilder- Returns:
- The fastStartupEnabled.
-
setFastStartupEnabled
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
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:
hasUnassignedDurationin 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:
getUnassignedDurationin interfaceSessionEventOrBuilder- Returns:
- The unassignedDuration.
-
setUnassignedDuration
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
The idle duration of a warm pooled session before it is assigned to user.
.google.protobuf.Duration unassigned_duration = 8; -
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:
getUnassignedDurationOrBuilderin interfaceSessionEventOrBuilder
-