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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SessionEventbuild()SessionEventbuildPartial()SessionEvent.Builderclear()SessionEvent.BuilderclearDetail()SessionEvent.BuilderclearEventSucceeded()The status of the event.SessionEvent.BuilderclearFastStartupEnabled()If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.SessionEvent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SessionEvent.BuilderclearMessage()The log message.SessionEvent.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SessionEvent.BuilderclearQuery()The execution details of the query.SessionEvent.BuilderclearSessionId()Unique identifier for the session.SessionEvent.BuilderclearType()The type of the event.SessionEvent.BuilderclearUnassignedDuration()The idle duration of a warm pooled session before it is assigned to user.SessionEvent.BuilderclearUserId()The information about the user that created the session.SessionEvent.Builderclone()SessionEventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SessionEvent.DetailCasegetDetailCase()booleangetEventSucceeded()The status of the event.booleangetFastStartupEnabled()If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.StringgetMessage()The log message.com.google.protobuf.ByteStringgetMessageBytes()The log message.SessionEvent.QueryDetailgetQuery()The execution details of the query.SessionEvent.QueryDetail.BuildergetQueryBuilder()The execution details of the query.SessionEvent.QueryDetailOrBuildergetQueryOrBuilder()The execution details of the query.StringgetSessionId()Unique identifier for the session.com.google.protobuf.ByteStringgetSessionIdBytes()Unique identifier for the session.SessionEvent.EventTypegetType()The type of the event.intgetTypeValue()The type of the event.com.google.protobuf.DurationgetUnassignedDuration()The idle duration of a warm pooled session before it is assigned to user.com.google.protobuf.Duration.BuildergetUnassignedDurationBuilder()The idle duration of a warm pooled session before it is assigned to user.com.google.protobuf.DurationOrBuildergetUnassignedDurationOrBuilder()The idle duration of a warm pooled session before it is assigned to user.StringgetUserId()The information about the user that created the session.com.google.protobuf.ByteStringgetUserIdBytes()The information about the user that created the session.booleanhasQuery()The execution details of the query.booleanhasUnassignedDuration()The idle duration of a warm pooled session before it is assigned to user.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SessionEvent.BuildermergeFrom(SessionEvent other)SessionEvent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SessionEvent.BuildermergeFrom(com.google.protobuf.Message other)SessionEvent.BuildermergeQuery(SessionEvent.QueryDetail value)The execution details of the query.SessionEvent.BuildermergeUnassignedDuration(com.google.protobuf.Duration value)The idle duration of a warm pooled session before it is assigned to user.SessionEvent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SessionEvent.BuildersetEventSucceeded(boolean value)The status of the event.SessionEvent.BuildersetFastStartupEnabled(boolean value)If the session is associated with an environment with fast startup enabled, and was created before being assigned to a user.SessionEvent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SessionEvent.BuildersetMessage(String value)The log message.SessionEvent.BuildersetMessageBytes(com.google.protobuf.ByteString value)The log message.SessionEvent.BuildersetQuery(SessionEvent.QueryDetail value)The execution details of the query.SessionEvent.BuildersetQuery(SessionEvent.QueryDetail.Builder builderForValue)The execution details of the query.SessionEvent.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SessionEvent.BuildersetSessionId(String value)Unique identifier for the session.SessionEvent.BuildersetSessionIdBytes(com.google.protobuf.ByteString value)Unique identifier for the session.SessionEvent.BuildersetType(SessionEvent.EventType value)The type of the event.SessionEvent.BuildersetTypeValue(int value)The type of the event.SessionEvent.BuildersetUnassignedDuration(com.google.protobuf.Duration value)The idle duration of a warm pooled session before it is assigned to user.SessionEvent.BuildersetUnassignedDuration(com.google.protobuf.Duration.Builder builderForValue)The idle duration of a warm pooled session before it is assigned to user.SessionEvent.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SessionEvent.BuildersetUserId(String value)The information about the user that created the session.SessionEvent.BuildersetUserIdBytes(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
clear
public SessionEvent.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
getDefaultInstanceForType
public SessionEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SessionEvent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SessionEvent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SessionEvent.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
setField
public SessionEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
clearField
public SessionEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
clearOneof
public SessionEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
setRepeatedField
public SessionEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
addRepeatedField
public SessionEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
mergeFrom
public SessionEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>
-
mergeFrom
public SessionEvent.Builder mergeFrom(SessionEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
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
public SessionEvent.DetailCase getDetailCase()
- Specified by:
getDetailCasein interfaceSessionEventOrBuilder
-
clearDetail
public SessionEvent.Builder clearDetail()
-
getMessage
public String 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
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:
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
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:
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
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:
getTypeValuein 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:
getTypein 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:
hasQueryin 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:
getQueryin 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:
getQueryOrBuilderin interfaceSessionEventOrBuilder
-
getEventSucceeded
public boolean getEventSucceeded()
The status of the event.
bool event_succeeded = 6;- Specified by:
getEventSucceededin 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:
getFastStartupEnabledin 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:
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
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:
getUnassignedDurationOrBuilderin interfaceSessionEventOrBuilder
-
setUnknownFields
public final SessionEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
mergeUnknownFields
public final SessionEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SessionEvent.Builder>
-
-