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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
    • clear

      public SessionEvent.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SessionEvent.Builder>
    • getDefaultInstanceForType

      public SessionEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SessionEvent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SessionEvent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SessionEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>
    • mergeFrom

      public SessionEvent.Builder mergeFrom(SessionEvent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionEvent.Builder>
      Throws:
      IOException
    • getDetailCase

      public SessionEvent.DetailCase getDetailCase()
      Specified by:
      getDetailCase in interface SessionEventOrBuilder
    • clearDetail

      public SessionEvent.Builder clearDetail()
    • getMessage

      public String getMessage()
       The log message.
       
      string message = 1;
      Specified by:
      getMessage in interface SessionEventOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       The log message.
       
      string message = 1;
      Specified by:
      getMessageBytes in interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

      public com.google.protobuf.ByteString getSessionIdBytes()
       Unique identifier for the session.
       
      string session_id = 3;
      Specified by:
      getSessionIdBytes in interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      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

      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 interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      Returns:
      The query.
    • setQuery

       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

       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 interface SessionEventOrBuilder
    • getEventSucceeded

      public boolean getEventSucceeded()
       The status of the event.
       
      bool event_succeeded = 6;
      Specified by:
      getEventSucceeded in interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder
      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 interface SessionEventOrBuilder