All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.SessionEvent Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataplex/v1/logs.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dataplex.v1;

/**
 *
 *
 * 
 * These messages contain information about sessions within an environment.
 * The monitored resource is 'Environment'.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.SessionEvent} */ public final class SessionEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.SessionEvent) SessionEventOrBuilder { private static final long serialVersionUID = 0L; // Use SessionEvent.newBuilder() to construct. private SessionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionEvent() { message_ = ""; userId_ = ""; sessionId_ = ""; type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SessionEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.SessionEvent.class, com.google.cloud.dataplex.v1.SessionEvent.Builder.class); } /** * * *
   * The type of the event.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.SessionEvent.EventType} */ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * An unspecified event type.
     * 
* * EVENT_TYPE_UNSPECIFIED = 0; */ EVENT_TYPE_UNSPECIFIED(0), /** * * *
     * Event when the session is assigned to a user.
     * 
* * START = 1; */ START(1), /** * * *
     * Event for stop of a session.
     * 
* * STOP = 2; */ STOP(2), /** * * *
     * Query events in the session.
     * 
* * QUERY = 3; */ QUERY(3), /** * * *
     * Event for creation of a cluster. It is not yet assigned to a user.
     * This comes before START in the sequence
     * 
* * CREATE = 4; */ CREATE(4), UNRECOGNIZED(-1), ; /** * * *
     * An unspecified event type.
     * 
* * EVENT_TYPE_UNSPECIFIED = 0; */ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Event when the session is assigned to a user.
     * 
* * START = 1; */ public static final int START_VALUE = 1; /** * * *
     * Event for stop of a session.
     * 
* * STOP = 2; */ public static final int STOP_VALUE = 2; /** * * *
     * Query events in the session.
     * 
* * QUERY = 3; */ public static final int QUERY_VALUE = 3; /** * * *
     * Event for creation of a cluster. It is not yet assigned to a user.
     * This comes before START in the sequence
     * 
* * CREATE = 4; */ public static final int CREATE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static EventType forNumber(int value) { switch (value) { case 0: return EVENT_TYPE_UNSPECIFIED; case 1: return START; case 2: return STOP; case 3: return QUERY; case 4: return CREATE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EventType findValueByNumber(int number) { return EventType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.SessionEvent.getDescriptor().getEnumTypes().get(0); } private static final EventType[] VALUES = values(); public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private EventType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.SessionEvent.EventType) } public interface QueryDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.SessionEvent.QueryDetail) com.google.protobuf.MessageOrBuilder { /** * * *
     * The unique Query id identifying the query.
     * 
* * string query_id = 1; * * @return The queryId. */ java.lang.String getQueryId(); /** * * *
     * The unique Query id identifying the query.
     * 
* * string query_id = 1; * * @return The bytes for queryId. */ com.google.protobuf.ByteString getQueryIdBytes(); /** * * *
     * The query text executed.
     * 
* * string query_text = 2; * * @return The queryText. */ java.lang.String getQueryText(); /** * * *
     * The query text executed.
     * 
* * string query_text = 2; * * @return The bytes for queryText. */ com.google.protobuf.ByteString getQueryTextBytes(); /** * * *
     * Query Execution engine.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @return The enum numeric value on the wire for engine. */ int getEngineValue(); /** * * *
     * Query Execution engine.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @return The engine. */ com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine getEngine(); /** * * *
     * Time taken for execution of the query.
     * 
* * .google.protobuf.Duration duration = 4; * * @return Whether the duration field is set. */ boolean hasDuration(); /** * * *
     * Time taken for execution of the query.
     * 
* * .google.protobuf.Duration duration = 4; * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** * * *
     * Time taken for execution of the query.
     * 
* * .google.protobuf.Duration duration = 4; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** * * *
     * The size of results the query produced.
     * 
* * int64 result_size_bytes = 5; * * @return The resultSizeBytes. */ long getResultSizeBytes(); /** * * *
     * The data processed by the query.
     * 
* * int64 data_processed_bytes = 6; * * @return The dataProcessedBytes. */ long getDataProcessedBytes(); } /** * * *
   * Execution details of the query.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.SessionEvent.QueryDetail} */ public static final class QueryDetail extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.SessionEvent.QueryDetail) QueryDetailOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDetail.newBuilder() to construct. private QueryDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDetail() { queryId_ = ""; queryText_ = ""; engine_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryDetail(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.class, com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Builder.class); } /** * * *
     * Query Execution engine.
     * 
* * Protobuf enum {@code google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine} */ public enum Engine implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * An unspecified Engine type.
       * 
* * ENGINE_UNSPECIFIED = 0; */ ENGINE_UNSPECIFIED(0), /** * * *
       * Spark-sql engine is specified in Query.
       * 
* * SPARK_SQL = 1; */ SPARK_SQL(1), /** * * *
       * BigQuery engine is specified in Query.
       * 
* * BIGQUERY = 2; */ BIGQUERY(2), UNRECOGNIZED(-1), ; /** * * *
       * An unspecified Engine type.
       * 
* * ENGINE_UNSPECIFIED = 0; */ public static final int ENGINE_UNSPECIFIED_VALUE = 0; /** * * *
       * Spark-sql engine is specified in Query.
       * 
* * SPARK_SQL = 1; */ public static final int SPARK_SQL_VALUE = 1; /** * * *
       * BigQuery engine is specified in Query.
       * 
* * BIGQUERY = 2; */ public static final int BIGQUERY_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Engine valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Engine forNumber(int value) { switch (value) { case 0: return ENGINE_UNSPECIFIED; case 1: return SPARK_SQL; case 2: return BIGQUERY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Engine findValueByNumber(int number) { return Engine.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDescriptor() .getEnumTypes() .get(0); } private static final Engine[] VALUES = values(); public static Engine valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Engine(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine) } private int bitField0_; public static final int QUERY_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object queryId_ = ""; /** * * *
     * The unique Query id identifying the query.
     * 
* * string query_id = 1; * * @return The queryId. */ @java.lang.Override public java.lang.String getQueryId() { java.lang.Object ref = queryId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryId_ = s; return s; } } /** * * *
     * The unique Query id identifying the query.
     * 
* * string query_id = 1; * * @return The bytes for queryId. */ @java.lang.Override public com.google.protobuf.ByteString getQueryIdBytes() { java.lang.Object ref = queryId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_TEXT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object queryText_ = ""; /** * * *
     * The query text executed.
     * 
* * string query_text = 2; * * @return The queryText. */ @java.lang.Override public java.lang.String getQueryText() { java.lang.Object ref = queryText_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryText_ = s; return s; } } /** * * *
     * The query text executed.
     * 
* * string query_text = 2; * * @return The bytes for queryText. */ @java.lang.Override public com.google.protobuf.ByteString getQueryTextBytes() { java.lang.Object ref = queryText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENGINE_FIELD_NUMBER = 3; private int engine_ = 0; /** * * *
     * Query Execution engine.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @return The enum numeric value on the wire for engine. */ @java.lang.Override public int getEngineValue() { return engine_; } /** * * *
     * Query Execution engine.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @return The engine. */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine getEngine() { com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine result = com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine.forNumber(engine_); return result == null ? com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine.UNRECOGNIZED : result; } public static final int DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration duration_; /** * * *
     * Time taken for execution of the query.
     * 
* * .google.protobuf.Duration duration = 4; * * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Time taken for execution of the query.
     * 
* * .google.protobuf.Duration duration = 4; * * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** * * *
     * Time taken for execution of the query.
     * 
* * .google.protobuf.Duration duration = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } public static final int RESULT_SIZE_BYTES_FIELD_NUMBER = 5; private long resultSizeBytes_ = 0L; /** * * *
     * The size of results the query produced.
     * 
* * int64 result_size_bytes = 5; * * @return The resultSizeBytes. */ @java.lang.Override public long getResultSizeBytes() { return resultSizeBytes_; } public static final int DATA_PROCESSED_BYTES_FIELD_NUMBER = 6; private long dataProcessedBytes_ = 0L; /** * * *
     * The data processed by the query.
     * 
* * int64 data_processed_bytes = 6; * * @return The dataProcessedBytes. */ @java.lang.Override public long getDataProcessedBytes() { return dataProcessedBytes_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryText_); } if (engine_ != com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine.ENGINE_UNSPECIFIED .getNumber()) { output.writeEnum(3, engine_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getDuration()); } if (resultSizeBytes_ != 0L) { output.writeInt64(5, resultSizeBytes_); } if (dataProcessedBytes_ != 0L) { output.writeInt64(6, dataProcessedBytes_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryText_); } if (engine_ != com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine.ENGINE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, engine_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDuration()); } if (resultSizeBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, resultSizeBytes_); } if (dataProcessedBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, dataProcessedBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dataplex.v1.SessionEvent.QueryDetail)) { return super.equals(obj); } com.google.cloud.dataplex.v1.SessionEvent.QueryDetail other = (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) obj; if (!getQueryId().equals(other.getQueryId())) return false; if (!getQueryText().equals(other.getQueryText())) return false; if (engine_ != other.engine_) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration().equals(other.getDuration())) return false; } if (getResultSizeBytes() != other.getResultSizeBytes()) return false; if (getDataProcessedBytes() != other.getDataProcessedBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + QUERY_ID_FIELD_NUMBER; hash = (53 * hash) + getQueryId().hashCode(); hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; hash = (53 * hash) + getQueryText().hashCode(); hash = (37 * hash) + ENGINE_FIELD_NUMBER; hash = (53 * hash) + engine_; if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (37 * hash) + RESULT_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResultSizeBytes()); hash = (37 * hash) + DATA_PROCESSED_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataProcessedBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dataplex.v1.SessionEvent.QueryDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Execution details of the query.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.SessionEvent.QueryDetail} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.SessionEvent.QueryDetail) com.google.cloud.dataplex.v1.SessionEvent.QueryDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.class, com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Builder.class); } // Construct using com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; queryId_ = ""; queryText_ = ""; engine_ = 0; duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } resultSizeBytes_ = 0L; dataProcessedBytes_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail build() { com.google.cloud.dataplex.v1.SessionEvent.QueryDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail buildPartial() { com.google.cloud.dataplex.v1.SessionEvent.QueryDetail result = new com.google.cloud.dataplex.v1.SessionEvent.QueryDetail(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.SessionEvent.QueryDetail result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.queryId_ = queryId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.queryText_ = queryText_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.engine_ = engine_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.resultSizeBytes_ = resultSizeBytes_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.dataProcessedBytes_ = dataProcessedBytes_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) { return mergeFrom((com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.SessionEvent.QueryDetail other) { if (other == com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance()) return this; if (!other.getQueryId().isEmpty()) { queryId_ = other.queryId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getQueryText().isEmpty()) { queryText_ = other.queryText_; bitField0_ |= 0x00000002; onChanged(); } if (other.engine_ != 0) { setEngineValue(other.getEngineValue()); } if (other.hasDuration()) { mergeDuration(other.getDuration()); } if (other.getResultSizeBytes() != 0L) { setResultSizeBytes(other.getResultSizeBytes()); } if (other.getDataProcessedBytes() != 0L) { setDataProcessedBytes(other.getDataProcessedBytes()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { queryId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { queryText_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { engine_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { resultSizeBytes_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { dataProcessedBytes_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object queryId_ = ""; /** * * *
       * The unique Query id identifying the query.
       * 
* * string query_id = 1; * * @return The queryId. */ public java.lang.String getQueryId() { java.lang.Object ref = queryId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The unique Query id identifying the query.
       * 
* * string query_id = 1; * * @return The bytes for queryId. */ public com.google.protobuf.ByteString getQueryIdBytes() { java.lang.Object ref = queryId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The unique Query id identifying the query.
       * 
* * string query_id = 1; * * @param value The queryId to set. * @return This builder for chaining. */ public Builder setQueryId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The unique Query id identifying the query.
       * 
* * string query_id = 1; * * @return This builder for chaining. */ public Builder clearQueryId() { queryId_ = getDefaultInstance().getQueryId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The unique Query id identifying the query.
       * 
* * string query_id = 1; * * @param value The bytes for queryId to set. * @return This builder for chaining. */ public Builder setQueryIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object queryText_ = ""; /** * * *
       * The query text executed.
       * 
* * string query_text = 2; * * @return The queryText. */ public java.lang.String getQueryText() { java.lang.Object ref = queryText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryText_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The query text executed.
       * 
* * string query_text = 2; * * @return The bytes for queryText. */ public com.google.protobuf.ByteString getQueryTextBytes() { java.lang.Object ref = queryText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); queryText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The query text executed.
       * 
* * string query_text = 2; * * @param value The queryText to set. * @return This builder for chaining. */ public Builder setQueryText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The query text executed.
       * 
* * string query_text = 2; * * @return This builder for chaining. */ public Builder clearQueryText() { queryText_ = getDefaultInstance().getQueryText(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The query text executed.
       * 
* * string query_text = 2; * * @param value The bytes for queryText to set. * @return This builder for chaining. */ public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int engine_ = 0; /** * * *
       * Query Execution engine.
       * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @return The enum numeric value on the wire for engine. */ @java.lang.Override public int getEngineValue() { return engine_; } /** * * *
       * Query Execution engine.
       * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @param value The enum numeric value on the wire for engine to set. * @return This builder for chaining. */ public Builder setEngineValue(int value) { engine_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Query Execution engine.
       * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @return The engine. */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine getEngine() { com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine result = com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine.forNumber(engine_); return result == null ? com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine.UNRECOGNIZED : result; } /** * * *
       * Query Execution engine.
       * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @param value The engine to set. * @return This builder for chaining. */ public Builder setEngine(com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; engine_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Query Execution engine.
       * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; * * @return This builder for chaining. */ public Builder clearEngine() { bitField0_ = (bitField0_ & ~0x00000004); engine_ = 0; onChanged(); return this; } private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; */ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000008); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * * *
       * Time taken for execution of the query.
       * 
* * .google.protobuf.Duration duration = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } private long resultSizeBytes_; /** * * *
       * The size of results the query produced.
       * 
* * int64 result_size_bytes = 5; * * @return The resultSizeBytes. */ @java.lang.Override public long getResultSizeBytes() { return resultSizeBytes_; } /** * * *
       * The size of results the query produced.
       * 
* * int64 result_size_bytes = 5; * * @param value The resultSizeBytes to set. * @return This builder for chaining. */ public Builder setResultSizeBytes(long value) { resultSizeBytes_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The size of results the query produced.
       * 
* * int64 result_size_bytes = 5; * * @return This builder for chaining. */ public Builder clearResultSizeBytes() { bitField0_ = (bitField0_ & ~0x00000010); resultSizeBytes_ = 0L; onChanged(); return this; } private long dataProcessedBytes_; /** * * *
       * The data processed by the query.
       * 
* * int64 data_processed_bytes = 6; * * @return The dataProcessedBytes. */ @java.lang.Override public long getDataProcessedBytes() { return dataProcessedBytes_; } /** * * *
       * The data processed by the query.
       * 
* * int64 data_processed_bytes = 6; * * @param value The dataProcessedBytes to set. * @return This builder for chaining. */ public Builder setDataProcessedBytes(long value) { dataProcessedBytes_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * The data processed by the query.
       * 
* * int64 data_processed_bytes = 6; * * @return This builder for chaining. */ public Builder clearDataProcessedBytes() { bitField0_ = (bitField0_ & ~0x00000020); dataProcessedBytes_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.SessionEvent.QueryDetail) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.SessionEvent.QueryDetail) private static final com.google.cloud.dataplex.v1.SessionEvent.QueryDetail DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.SessionEvent.QueryDetail(); } public static com.google.cloud.dataplex.v1.SessionEvent.QueryDetail getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDetail parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int detailCase_ = 0; @SuppressWarnings("serial") private java.lang.Object detail_; public enum DetailCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { QUERY(5), DETAIL_NOT_SET(0); private final int value; private DetailCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DetailCase valueOf(int value) { return forNumber(value); } public static DetailCase forNumber(int value) { switch (value) { case 5: return QUERY; case 0: return DETAIL_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DetailCase getDetailCase() { return DetailCase.forNumber(detailCase_); } public static final int MESSAGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * * *
   * The log message.
   * 
* * string message = 1; * * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * * *
   * The log message.
   * 
* * string message = 1; * * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object userId_ = ""; /** * * *
   * The information about the user that created the session. It will be the
   * email address of the user.
   * 
* * string user_id = 2; * * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** * * *
   * The information about the user that created the session. It will be the
   * email address of the user.
   * 
* * string user_id = 2; * * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SESSION_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object sessionId_ = ""; /** * * *
   * Unique identifier for the session.
   * 
* * string session_id = 3; * * @return The sessionId. */ @java.lang.Override public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; } } /** * * *
   * Unique identifier for the session.
   * 
* * string session_id = 3; * * @return The bytes for sessionId. */ @java.lang.Override public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 4; private int type_ = 0; /** * * *
   * The type of the event.
   * 
* * .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * The type of the event.
   * 
* * .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.EventType getType() { com.google.cloud.dataplex.v1.SessionEvent.EventType result = com.google.cloud.dataplex.v1.SessionEvent.EventType.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.SessionEvent.EventType.UNRECOGNIZED : result; } public static final int QUERY_FIELD_NUMBER = 5; /** * * *
   * The execution details of the query.
   * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; * * @return Whether the query field is set. */ @java.lang.Override public boolean hasQuery() { return detailCase_ == 5; } /** * * *
   * The execution details of the query.
   * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; * * @return The query. */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail getQuery() { if (detailCase_ == 5) { return (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_; } return com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance(); } /** * * *
   * The execution details of the query.
   * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetailOrBuilder getQueryOrBuilder() { if (detailCase_ == 5) { return (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_; } return com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance(); } public static final int EVENT_SUCCEEDED_FIELD_NUMBER = 6; private boolean eventSucceeded_ = false; /** * * *
   * The status of the event.
   * 
* * bool event_succeeded = 6; * * @return The eventSucceeded. */ @java.lang.Override public boolean getEventSucceeded() { return eventSucceeded_; } public static final int FAST_STARTUP_ENABLED_FIELD_NUMBER = 7; private boolean fastStartupEnabled_ = false; /** * * *
   * 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; * * @return The fastStartupEnabled. */ @java.lang.Override public boolean getFastStartupEnabled() { return fastStartupEnabled_; } public static final int UNASSIGNED_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration unassignedDuration_; /** * * *
   * The idle duration of a warm pooled session before it is assigned to user.
   * 
* * .google.protobuf.Duration unassigned_duration = 8; * * @return Whether the unassignedDuration field is set. */ @java.lang.Override public boolean hasUnassignedDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The idle duration of a warm pooled session before it is assigned to user.
   * 
* * .google.protobuf.Duration unassigned_duration = 8; * * @return The unassignedDuration. */ @java.lang.Override public com.google.protobuf.Duration getUnassignedDuration() { return unassignedDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unassignedDuration_; } /** * * *
   * The idle duration of a warm pooled session before it is assigned to user.
   * 
* * .google.protobuf.Duration unassigned_duration = 8; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getUnassignedDurationOrBuilder() { return unassignedDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unassignedDuration_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sessionId_); } if (type_ != com.google.cloud.dataplex.v1.SessionEvent.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, type_); } if (detailCase_ == 5) { output.writeMessage(5, (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_); } if (eventSucceeded_ != false) { output.writeBool(6, eventSucceeded_); } if (fastStartupEnabled_ != false) { output.writeBool(7, fastStartupEnabled_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getUnassignedDuration()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sessionId_); } if (type_ != com.google.cloud.dataplex.v1.SessionEvent.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, type_); } if (detailCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_); } if (eventSucceeded_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, eventSucceeded_); } if (fastStartupEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, fastStartupEnabled_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUnassignedDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dataplex.v1.SessionEvent)) { return super.equals(obj); } com.google.cloud.dataplex.v1.SessionEvent other = (com.google.cloud.dataplex.v1.SessionEvent) obj; if (!getMessage().equals(other.getMessage())) return false; if (!getUserId().equals(other.getUserId())) return false; if (!getSessionId().equals(other.getSessionId())) return false; if (type_ != other.type_) return false; if (getEventSucceeded() != other.getEventSucceeded()) return false; if (getFastStartupEnabled() != other.getFastStartupEnabled()) return false; if (hasUnassignedDuration() != other.hasUnassignedDuration()) return false; if (hasUnassignedDuration()) { if (!getUnassignedDuration().equals(other.getUnassignedDuration())) return false; } if (!getDetailCase().equals(other.getDetailCase())) return false; switch (detailCase_) { case 5: if (!getQuery().equals(other.getQuery())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSessionId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + EVENT_SUCCEEDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEventSucceeded()); hash = (37 * hash) + FAST_STARTUP_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFastStartupEnabled()); if (hasUnassignedDuration()) { hash = (37 * hash) + UNASSIGNED_DURATION_FIELD_NUMBER; hash = (53 * hash) + getUnassignedDuration().hashCode(); } switch (detailCase_) { case 5: hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.SessionEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.SessionEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.dataplex.v1.SessionEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * These messages contain information about sessions within an environment.
   * The monitored resource is 'Environment'.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.SessionEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.SessionEvent) com.google.cloud.dataplex.v1.SessionEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.SessionEvent.class, com.google.cloud.dataplex.v1.SessionEvent.Builder.class); } // Construct using com.google.cloud.dataplex.v1.SessionEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUnassignedDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; message_ = ""; userId_ = ""; sessionId_ = ""; type_ = 0; if (queryBuilder_ != null) { queryBuilder_.clear(); } eventSucceeded_ = false; fastStartupEnabled_ = false; unassignedDuration_ = null; if (unassignedDurationBuilder_ != null) { unassignedDurationBuilder_.dispose(); unassignedDurationBuilder_ = null; } detailCase_ = 0; detail_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_SessionEvent_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.SessionEvent.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent build() { com.google.cloud.dataplex.v1.SessionEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent buildPartial() { com.google.cloud.dataplex.v1.SessionEvent result = new com.google.cloud.dataplex.v1.SessionEvent(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.SessionEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.userId_ = userId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sessionId_ = sessionId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.eventSucceeded_ = eventSucceeded_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.fastStartupEnabled_ = fastStartupEnabled_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.unassignedDuration_ = unassignedDurationBuilder_ == null ? unassignedDuration_ : unassignedDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dataplex.v1.SessionEvent result) { result.detailCase_ = detailCase_; result.detail_ = this.detail_; if (detailCase_ == 5 && queryBuilder_ != null) { result.detail_ = queryBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataplex.v1.SessionEvent) { return mergeFrom((com.google.cloud.dataplex.v1.SessionEvent) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.SessionEvent other) { if (other == com.google.cloud.dataplex.v1.SessionEvent.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getSessionId().isEmpty()) { sessionId_ = other.sessionId_; bitField0_ |= 0x00000004; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getEventSucceeded() != false) { setEventSucceeded(other.getEventSucceeded()); } if (other.getFastStartupEnabled() != false) { setFastStartupEnabled(other.getFastStartupEnabled()); } if (other.hasUnassignedDuration()) { mergeUnassignedDuration(other.getUnassignedDuration()); } switch (other.getDetailCase()) { case QUERY: { mergeQuery(other.getQuery()); break; } case DETAIL_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { userId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { sessionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { type_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getQueryFieldBuilder().getBuilder(), extensionRegistry); detailCase_ = 5; break; } // case 42 case 48: { eventSucceeded_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { fastStartupEnabled_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { input.readMessage( getUnassignedDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int detailCase_ = 0; private java.lang.Object detail_; public DetailCase getDetailCase() { return DetailCase.forNumber(detailCase_); } public Builder clearDetail() { detailCase_ = 0; detail_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object message_ = ""; /** * * *
     * The log message.
     * 
* * string message = 1; * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The log message.
     * 
* * string message = 1; * * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The log message.
     * 
* * string message = 1; * * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The log message.
     * 
* * string message = 1; * * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The log message.
     * 
* * string message = 1; * * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object userId_ = ""; /** * * *
     * The information about the user that created the session. It will be the
     * email address of the user.
     * 
* * string user_id = 2; * * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The information about the user that created the session. It will be the
     * email address of the user.
     * 
* * string user_id = 2; * * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The information about the user that created the session. It will be the
     * email address of the user.
     * 
* * string user_id = 2; * * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The information about the user that created the session. It will be the
     * email address of the user.
     * 
* * string user_id = 2; * * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The information about the user that created the session. It will be the
     * email address of the user.
     * 
* * string user_id = 2; * * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object sessionId_ = ""; /** * * *
     * Unique identifier for the session.
     * 
* * string session_id = 3; * * @return The sessionId. */ public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Unique identifier for the session.
     * 
* * string session_id = 3; * * @return The bytes for sessionId. */ public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Unique identifier for the session.
     * 
* * string session_id = 3; * * @param value The sessionId to set. * @return This builder for chaining. */ public Builder setSessionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } sessionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Unique identifier for the session.
     * 
* * string session_id = 3; * * @return This builder for chaining. */ public Builder clearSessionId() { sessionId_ = getDefaultInstance().getSessionId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Unique identifier for the session.
     * 
* * string session_id = 3; * * @param value The bytes for sessionId to set. * @return This builder for chaining. */ public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sessionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int type_ = 0; /** * * *
     * The type of the event.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * The type of the event.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The type of the event.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.EventType getType() { com.google.cloud.dataplex.v1.SessionEvent.EventType result = com.google.cloud.dataplex.v1.SessionEvent.EventType.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.SessionEvent.EventType.UNRECOGNIZED : result; } /** * * *
     * The type of the event.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.dataplex.v1.SessionEvent.EventType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The type of the event.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.SessionEvent.QueryDetail, com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Builder, com.google.cloud.dataplex.v1.SessionEvent.QueryDetailOrBuilder> queryBuilder_; /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; * * @return Whether the query field is set. */ @java.lang.Override public boolean hasQuery() { return detailCase_ == 5; } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; * * @return The query. */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail getQuery() { if (queryBuilder_ == null) { if (detailCase_ == 5) { return (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_; } return com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance(); } else { if (detailCase_ == 5) { return queryBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance(); } } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ public Builder setQuery(com.google.cloud.dataplex.v1.SessionEvent.QueryDetail value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); } else { queryBuilder_.setMessage(value); } detailCase_ = 5; return this; } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ public Builder setQuery( com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Builder builderForValue) { if (queryBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); } else { queryBuilder_.setMessage(builderForValue.build()); } detailCase_ = 5; return this; } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ public Builder mergeQuery(com.google.cloud.dataplex.v1.SessionEvent.QueryDetail value) { if (queryBuilder_ == null) { if (detailCase_ == 5 && detail_ != com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance()) { detail_ = com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.newBuilder( (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_) .mergeFrom(value) .buildPartial(); } else { detail_ = value; } onChanged(); } else { if (detailCase_ == 5) { queryBuilder_.mergeFrom(value); } else { queryBuilder_.setMessage(value); } } detailCase_ = 5; return this; } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ public Builder clearQuery() { if (queryBuilder_ == null) { if (detailCase_ == 5) { detailCase_ = 0; detail_ = null; onChanged(); } } else { if (detailCase_ == 5) { detailCase_ = 0; detail_ = null; } queryBuilder_.clear(); } return this; } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ public com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent.QueryDetailOrBuilder getQueryOrBuilder() { if ((detailCase_ == 5) && (queryBuilder_ != null)) { return queryBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 5) { return (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_; } return com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance(); } } /** * * *
     * The execution details of the query.
     * 
* * .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.SessionEvent.QueryDetail, com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Builder, com.google.cloud.dataplex.v1.SessionEvent.QueryDetailOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { if (!(detailCase_ == 5)) { detail_ = com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.getDefaultInstance(); } queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.SessionEvent.QueryDetail, com.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Builder, com.google.cloud.dataplex.v1.SessionEvent.QueryDetailOrBuilder>( (com.google.cloud.dataplex.v1.SessionEvent.QueryDetail) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 5; onChanged(); return queryBuilder_; } private boolean eventSucceeded_; /** * * *
     * The status of the event.
     * 
* * bool event_succeeded = 6; * * @return The eventSucceeded. */ @java.lang.Override public boolean getEventSucceeded() { return eventSucceeded_; } /** * * *
     * The status of the event.
     * 
* * bool event_succeeded = 6; * * @param value The eventSucceeded to set. * @return This builder for chaining. */ public Builder setEventSucceeded(boolean value) { eventSucceeded_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The status of the event.
     * 
* * bool event_succeeded = 6; * * @return This builder for chaining. */ public Builder clearEventSucceeded() { bitField0_ = (bitField0_ & ~0x00000020); eventSucceeded_ = false; onChanged(); return this; } private boolean fastStartupEnabled_; /** * * *
     * 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; * * @return The fastStartupEnabled. */ @java.lang.Override public boolean getFastStartupEnabled() { return fastStartupEnabled_; } /** * * *
     * 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; * * @param value The fastStartupEnabled to set. * @return This builder for chaining. */ public Builder setFastStartupEnabled(boolean value) { fastStartupEnabled_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearFastStartupEnabled() { bitField0_ = (bitField0_ & ~0x00000040); fastStartupEnabled_ = false; onChanged(); return this; } private com.google.protobuf.Duration unassignedDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> unassignedDurationBuilder_; /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; * * @return Whether the unassignedDuration field is set. */ public boolean hasUnassignedDuration() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; * * @return The unassignedDuration. */ public com.google.protobuf.Duration getUnassignedDuration() { if (unassignedDurationBuilder_ == null) { return unassignedDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unassignedDuration_; } else { return unassignedDurationBuilder_.getMessage(); } } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; */ public Builder setUnassignedDuration(com.google.protobuf.Duration value) { if (unassignedDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unassignedDuration_ = value; } else { unassignedDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; */ public Builder setUnassignedDuration(com.google.protobuf.Duration.Builder builderForValue) { if (unassignedDurationBuilder_ == null) { unassignedDuration_ = builderForValue.build(); } else { unassignedDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; */ public Builder mergeUnassignedDuration(com.google.protobuf.Duration value) { if (unassignedDurationBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && unassignedDuration_ != null && unassignedDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getUnassignedDurationBuilder().mergeFrom(value); } else { unassignedDuration_ = value; } } else { unassignedDurationBuilder_.mergeFrom(value); } if (unassignedDuration_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; */ public Builder clearUnassignedDuration() { bitField0_ = (bitField0_ & ~0x00000080); unassignedDuration_ = null; if (unassignedDurationBuilder_ != null) { unassignedDurationBuilder_.dispose(); unassignedDurationBuilder_ = null; } onChanged(); return this; } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; */ public com.google.protobuf.Duration.Builder getUnassignedDurationBuilder() { bitField0_ |= 0x00000080; onChanged(); return getUnassignedDurationFieldBuilder().getBuilder(); } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; */ public com.google.protobuf.DurationOrBuilder getUnassignedDurationOrBuilder() { if (unassignedDurationBuilder_ != null) { return unassignedDurationBuilder_.getMessageOrBuilder(); } else { return unassignedDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : unassignedDuration_; } } /** * * *
     * The idle duration of a warm pooled session before it is assigned to user.
     * 
* * .google.protobuf.Duration unassigned_duration = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getUnassignedDurationFieldBuilder() { if (unassignedDurationBuilder_ == null) { unassignedDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getUnassignedDuration(), getParentForChildren(), isClean()); unassignedDuration_ = null; } return unassignedDurationBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.SessionEvent) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.SessionEvent) private static final com.google.cloud.dataplex.v1.SessionEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.SessionEvent(); } public static com.google.cloud.dataplex.v1.SessionEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dataplex.v1.SessionEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy