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

com.clickzetta.rm.proto.VirtualClusterProtos Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: virtual_cluster.proto

package com.clickzetta.rm.proto;

public final class VirtualClusterProtos {
  private VirtualClusterProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * general protos
   * 
* * Protobuf enum {@code com.clickzetta.rm.VClusterSize} */ public enum VClusterSize implements com.google.protobuf.ProtocolMessageEnum { /** * XSMALL = 0; */ XSMALL(0), /** * SMALL = 1; */ SMALL(1), /** * MEDIUM = 2; */ MEDIUM(2), /** * LARGE = 3; */ LARGE(3), /** * XLARGE = 4; */ XLARGE(4), /** * X2LARGE = 5; */ X2LARGE(5), /** * X3LARGE = 6; */ X3LARGE(6), /** * X4LARGE = 7; */ X4LARGE(7), /** * X5LARGE = 8; */ X5LARGE(8), /** * X6LARGE = 9; */ X6LARGE(9), /** *
     * internal size type
     * 
* * CUSTOMIZED3 = 101; */ CUSTOMIZED3(101), /** *
     * customized spec for 52 executors (416 cores)
     * 
* * CUSTOMIZED52 = 102; */ CUSTOMIZED52(102), /** *
     * customized spec for 48 executors (384 cores)
     * 
* * CUSTOMIZED48 = 103; */ CUSTOMIZED48(103), /** *
     * customized spec for 12 executors (96 cores)
     * 
* * CUSTOMIZED12 = 104; */ CUSTOMIZED12(104), UNRECOGNIZED(-1), ; /** * XSMALL = 0; */ public static final int XSMALL_VALUE = 0; /** * SMALL = 1; */ public static final int SMALL_VALUE = 1; /** * MEDIUM = 2; */ public static final int MEDIUM_VALUE = 2; /** * LARGE = 3; */ public static final int LARGE_VALUE = 3; /** * XLARGE = 4; */ public static final int XLARGE_VALUE = 4; /** * X2LARGE = 5; */ public static final int X2LARGE_VALUE = 5; /** * X3LARGE = 6; */ public static final int X3LARGE_VALUE = 6; /** * X4LARGE = 7; */ public static final int X4LARGE_VALUE = 7; /** * X5LARGE = 8; */ public static final int X5LARGE_VALUE = 8; /** * X6LARGE = 9; */ public static final int X6LARGE_VALUE = 9; /** *
     * internal size type
     * 
* * CUSTOMIZED3 = 101; */ public static final int CUSTOMIZED3_VALUE = 101; /** *
     * customized spec for 52 executors (416 cores)
     * 
* * CUSTOMIZED52 = 102; */ public static final int CUSTOMIZED52_VALUE = 102; /** *
     * customized spec for 48 executors (384 cores)
     * 
* * CUSTOMIZED48 = 103; */ public static final int CUSTOMIZED48_VALUE = 103; /** *
     * customized spec for 12 executors (96 cores)
     * 
* * CUSTOMIZED12 = 104; */ public static final int CUSTOMIZED12_VALUE = 104; 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 VClusterSize 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 VClusterSize forNumber(int value) { switch (value) { case 0: return XSMALL; case 1: return SMALL; case 2: return MEDIUM; case 3: return LARGE; case 4: return XLARGE; case 5: return X2LARGE; case 6: return X3LARGE; case 7: return X4LARGE; case 8: return X5LARGE; case 9: return X6LARGE; case 101: return CUSTOMIZED3; case 102: return CUSTOMIZED52; case 103: return CUSTOMIZED48; case 104: return CUSTOMIZED12; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VClusterSize> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VClusterSize findValueByNumber(int number) { return VClusterSize.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.clickzetta.rm.proto.VirtualClusterProtos.getDescriptor().getEnumTypes().get(0); } private static final VClusterSize[] VALUES = values(); public static VClusterSize 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 VClusterSize(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.clickzetta.rm.VClusterSize) } /** * Protobuf enum {@code com.clickzetta.rm.VClusterType} */ public enum VClusterType implements com.google.protobuf.ProtocolMessageEnum { /** * GENERAL = 0; */ GENERAL(0), /** * ANALYTICS = 1; */ ANALYTICS(1), UNRECOGNIZED(-1), ; /** * GENERAL = 0; */ public static final int GENERAL_VALUE = 0; /** * ANALYTICS = 1; */ public static final int ANALYTICS_VALUE = 1; 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 VClusterType 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 VClusterType forNumber(int value) { switch (value) { case 0: return GENERAL; case 1: return ANALYTICS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VClusterType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VClusterType findValueByNumber(int number) { return VClusterType.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.clickzetta.rm.proto.VirtualClusterProtos.getDescriptor().getEnumTypes().get(1); } private static final VClusterType[] VALUES = values(); public static VClusterType 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 VClusterType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.clickzetta.rm.VClusterType) } /** * Protobuf enum {@code com.clickzetta.rm.ScalePolicy} */ public enum ScalePolicy implements com.google.protobuf.ProtocolMessageEnum { /** *
     * ECONOMY = 1; // not supported in MVP
     * 
* * STANDARD = 0; */ STANDARD(0), UNRECOGNIZED(-1), ; /** *
     * ECONOMY = 1; // not supported in MVP
     * 
* * STANDARD = 0; */ public static final int STANDARD_VALUE = 0; 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 ScalePolicy 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 ScalePolicy forNumber(int value) { switch (value) { case 0: return STANDARD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ScalePolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ScalePolicy findValueByNumber(int number) { return ScalePolicy.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.clickzetta.rm.proto.VirtualClusterProtos.getDescriptor().getEnumTypes().get(2); } private static final ScalePolicy[] VALUES = values(); public static ScalePolicy 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 ScalePolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.clickzetta.rm.ScalePolicy) } /** * Protobuf enum {@code com.clickzetta.rm.VirtualClusterState} */ public enum VirtualClusterState implements com.google.protobuf.ProtocolMessageEnum { /** * SUSPENDED = 0; */ SUSPENDED(0), /** * RUNNING = 1; */ RUNNING(1), /** * STARTING = 2; */ STARTING(2), /** * SCALING_UP = 3; */ SCALING_UP(3), /** * SCALING_DOWN = 4; */ SCALING_DOWN(4), /** * SUSPENDING = 5; */ SUSPENDING(5), /** * DROPPING = 6; */ DROPPING(6), /** * ERROR = 7; */ ERROR(7), /** * DELETED = 8; */ DELETED(8), /** * RESUMING = 9; */ RESUMING(9), /** * CANCELLING = 10; */ CANCELLING(10), /** * UPGRADING = 11; */ UPGRADING(11), UNRECOGNIZED(-1), ; /** * SUSPENDED = 0; */ public static final int SUSPENDED_VALUE = 0; /** * RUNNING = 1; */ public static final int RUNNING_VALUE = 1; /** * STARTING = 2; */ public static final int STARTING_VALUE = 2; /** * SCALING_UP = 3; */ public static final int SCALING_UP_VALUE = 3; /** * SCALING_DOWN = 4; */ public static final int SCALING_DOWN_VALUE = 4; /** * SUSPENDING = 5; */ public static final int SUSPENDING_VALUE = 5; /** * DROPPING = 6; */ public static final int DROPPING_VALUE = 6; /** * ERROR = 7; */ public static final int ERROR_VALUE = 7; /** * DELETED = 8; */ public static final int DELETED_VALUE = 8; /** * RESUMING = 9; */ public static final int RESUMING_VALUE = 9; /** * CANCELLING = 10; */ public static final int CANCELLING_VALUE = 10; /** * UPGRADING = 11; */ public static final int UPGRADING_VALUE = 11; 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 VirtualClusterState 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 VirtualClusterState forNumber(int value) { switch (value) { case 0: return SUSPENDED; case 1: return RUNNING; case 2: return STARTING; case 3: return SCALING_UP; case 4: return SCALING_DOWN; case 5: return SUSPENDING; case 6: return DROPPING; case 7: return ERROR; case 8: return DELETED; case 9: return RESUMING; case 10: return CANCELLING; case 11: return UPGRADING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VirtualClusterState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VirtualClusterState findValueByNumber(int number) { return VirtualClusterState.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.clickzetta.rm.proto.VirtualClusterProtos.getDescriptor().getEnumTypes().get(3); } private static final VirtualClusterState[] VALUES = values(); public static VirtualClusterState 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 VirtualClusterState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.clickzetta.rm.VirtualClusterState) } /** *
   * rpc status
   * 
* * Protobuf enum {@code com.clickzetta.rm.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * SUCCEEDED = 0; */ SUCCEEDED(0), /** * FAILED = 1; */ FAILED(1), UNRECOGNIZED(-1), ; /** * SUCCEEDED = 0; */ public static final int SUCCEEDED_VALUE = 0; /** * FAILED = 1; */ public static final int FAILED_VALUE = 1; 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 Status 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 Status forNumber(int value) { switch (value) { case 0: return SUCCEEDED; case 1: return FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.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.clickzetta.rm.proto.VirtualClusterProtos.getDescriptor().getEnumTypes().get(4); } private static final Status[] VALUES = values(); public static Status 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 Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.clickzetta.rm.Status) } public interface AnalyticsPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.AnalyticsProperties) com.google.protobuf.MessageOrBuilder { /** * optional int32 min_replicas = 1; * @return Whether the minReplicas field is set. */ boolean hasMinReplicas(); /** * optional int32 min_replicas = 1; * @return The minReplicas. */ int getMinReplicas(); /** * optional int32 max_replicas = 2; * @return Whether the maxReplicas field is set. */ boolean hasMaxReplicas(); /** * optional int32 max_replicas = 2; * @return The maxReplicas. */ int getMaxReplicas(); /** * optional int32 max_concurrency_per_replica = 3; * @return Whether the maxConcurrencyPerReplica field is set. */ boolean hasMaxConcurrencyPerReplica(); /** * optional int32 max_concurrency_per_replica = 3; * @return The maxConcurrencyPerReplica. */ int getMaxConcurrencyPerReplica(); /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return Whether the scalePolicy field is set. */ boolean hasScalePolicy(); /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return The enum numeric value on the wire for scalePolicy. */ int getScalePolicyValue(); /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return The scalePolicy. */ com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy getScalePolicy(); /** * optional string preload_tables = 5; * @return Whether the preloadTables field is set. */ boolean hasPreloadTables(); /** * optional string preload_tables = 5; * @return The preloadTables. */ java.lang.String getPreloadTables(); /** * optional string preload_tables = 5; * @return The bytes for preloadTables. */ com.google.protobuf.ByteString getPreloadTablesBytes(); } /** * Protobuf type {@code com.clickzetta.rm.AnalyticsProperties} */ public static final class AnalyticsProperties extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.clickzetta.rm.AnalyticsProperties) AnalyticsPropertiesOrBuilder { private static final long serialVersionUID = 0L; // Use AnalyticsProperties.newBuilder() to construct. private AnalyticsProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AnalyticsProperties() { scalePolicy_ = 0; preloadTables_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AnalyticsProperties(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AnalyticsProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bitField0_ |= 0x00000001; minReplicas_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; maxReplicas_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; maxConcurrencyPerReplica_ = input.readInt32(); break; } case 32: { int rawValue = input.readEnum(); bitField0_ |= 0x00000008; scalePolicy_ = rawValue; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; preloadTables_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_AnalyticsProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_AnalyticsProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.class, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder.class); } private int bitField0_; public static final int MIN_REPLICAS_FIELD_NUMBER = 1; private int minReplicas_; /** * optional int32 min_replicas = 1; * @return Whether the minReplicas field is set. */ @java.lang.Override public boolean hasMinReplicas() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 min_replicas = 1; * @return The minReplicas. */ @java.lang.Override public int getMinReplicas() { return minReplicas_; } public static final int MAX_REPLICAS_FIELD_NUMBER = 2; private int maxReplicas_; /** * optional int32 max_replicas = 2; * @return Whether the maxReplicas field is set. */ @java.lang.Override public boolean hasMaxReplicas() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 max_replicas = 2; * @return The maxReplicas. */ @java.lang.Override public int getMaxReplicas() { return maxReplicas_; } public static final int MAX_CONCURRENCY_PER_REPLICA_FIELD_NUMBER = 3; private int maxConcurrencyPerReplica_; /** * optional int32 max_concurrency_per_replica = 3; * @return Whether the maxConcurrencyPerReplica field is set. */ @java.lang.Override public boolean hasMaxConcurrencyPerReplica() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 max_concurrency_per_replica = 3; * @return The maxConcurrencyPerReplica. */ @java.lang.Override public int getMaxConcurrencyPerReplica() { return maxConcurrencyPerReplica_; } public static final int SCALE_POLICY_FIELD_NUMBER = 4; private int scalePolicy_; /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return Whether the scalePolicy field is set. */ @java.lang.Override public boolean hasScalePolicy() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return The enum numeric value on the wire for scalePolicy. */ @java.lang.Override public int getScalePolicyValue() { return scalePolicy_; } /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return The scalePolicy. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy getScalePolicy() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy result = com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.valueOf(scalePolicy_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.UNRECOGNIZED : result; } public static final int PRELOAD_TABLES_FIELD_NUMBER = 5; private volatile java.lang.Object preloadTables_; /** * optional string preload_tables = 5; * @return Whether the preloadTables field is set. */ @java.lang.Override public boolean hasPreloadTables() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string preload_tables = 5; * @return The preloadTables. */ @java.lang.Override public java.lang.String getPreloadTables() { java.lang.Object ref = preloadTables_; 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(); preloadTables_ = s; return s; } } /** * optional string preload_tables = 5; * @return The bytes for preloadTables. */ @java.lang.Override public com.google.protobuf.ByteString getPreloadTablesBytes() { java.lang.Object ref = preloadTables_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preloadTables_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, minReplicas_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, maxReplicas_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, maxConcurrencyPerReplica_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, scalePolicy_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, preloadTables_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, minReplicas_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maxReplicas_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, maxConcurrencyPerReplica_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, scalePolicy_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, preloadTables_); } size += unknownFields.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.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties)) { return super.equals(obj); } com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties other = (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) obj; if (hasMinReplicas() != other.hasMinReplicas()) return false; if (hasMinReplicas()) { if (getMinReplicas() != other.getMinReplicas()) return false; } if (hasMaxReplicas() != other.hasMaxReplicas()) return false; if (hasMaxReplicas()) { if (getMaxReplicas() != other.getMaxReplicas()) return false; } if (hasMaxConcurrencyPerReplica() != other.hasMaxConcurrencyPerReplica()) return false; if (hasMaxConcurrencyPerReplica()) { if (getMaxConcurrencyPerReplica() != other.getMaxConcurrencyPerReplica()) return false; } if (hasScalePolicy() != other.hasScalePolicy()) return false; if (hasScalePolicy()) { if (scalePolicy_ != other.scalePolicy_) return false; } if (hasPreloadTables() != other.hasPreloadTables()) return false; if (hasPreloadTables()) { if (!getPreloadTables() .equals(other.getPreloadTables())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMinReplicas()) { hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getMinReplicas(); } if (hasMaxReplicas()) { hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getMaxReplicas(); } if (hasMaxConcurrencyPerReplica()) { hash = (37 * hash) + MAX_CONCURRENCY_PER_REPLICA_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrencyPerReplica(); } if (hasScalePolicy()) { hash = (37 * hash) + SCALE_POLICY_FIELD_NUMBER; hash = (53 * hash) + scalePolicy_; } if (hasPreloadTables()) { hash = (37 * hash) + PRELOAD_TABLES_FIELD_NUMBER; hash = (53 * hash) + getPreloadTables().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties 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.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties 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.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties 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.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties 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; } /** * Protobuf type {@code com.clickzetta.rm.AnalyticsProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.AnalyticsProperties) com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_AnalyticsProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_AnalyticsProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.class, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder.class); } // Construct using com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); minReplicas_ = 0; bitField0_ = (bitField0_ & ~0x00000001); maxReplicas_ = 0; bitField0_ = (bitField0_ & ~0x00000002); maxConcurrencyPerReplica_ = 0; bitField0_ = (bitField0_ & ~0x00000004); scalePolicy_ = 0; bitField0_ = (bitField0_ & ~0x00000008); preloadTables_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_AnalyticsProperties_descriptor; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties getDefaultInstanceForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance(); } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties build() { com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties buildPartial() { com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties result = new com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.minReplicas_ = minReplicas_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxReplicas_ = maxReplicas_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxConcurrencyPerReplica_ = maxConcurrencyPerReplica_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.scalePolicy_ = scalePolicy_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.preloadTables_ = preloadTables_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) { return mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties other) { if (other == com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance()) return this; if (other.hasMinReplicas()) { setMinReplicas(other.getMinReplicas()); } if (other.hasMaxReplicas()) { setMaxReplicas(other.getMaxReplicas()); } if (other.hasMaxConcurrencyPerReplica()) { setMaxConcurrencyPerReplica(other.getMaxConcurrencyPerReplica()); } if (other.hasScalePolicy()) { setScalePolicy(other.getScalePolicy()); } if (other.hasPreloadTables()) { bitField0_ |= 0x00000010; preloadTables_ = other.preloadTables_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int minReplicas_ ; /** * optional int32 min_replicas = 1; * @return Whether the minReplicas field is set. */ @java.lang.Override public boolean hasMinReplicas() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 min_replicas = 1; * @return The minReplicas. */ @java.lang.Override public int getMinReplicas() { return minReplicas_; } /** * optional int32 min_replicas = 1; * @param value The minReplicas to set. * @return This builder for chaining. */ public Builder setMinReplicas(int value) { bitField0_ |= 0x00000001; minReplicas_ = value; onChanged(); return this; } /** * optional int32 min_replicas = 1; * @return This builder for chaining. */ public Builder clearMinReplicas() { bitField0_ = (bitField0_ & ~0x00000001); minReplicas_ = 0; onChanged(); return this; } private int maxReplicas_ ; /** * optional int32 max_replicas = 2; * @return Whether the maxReplicas field is set. */ @java.lang.Override public boolean hasMaxReplicas() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 max_replicas = 2; * @return The maxReplicas. */ @java.lang.Override public int getMaxReplicas() { return maxReplicas_; } /** * optional int32 max_replicas = 2; * @param value The maxReplicas to set. * @return This builder for chaining. */ public Builder setMaxReplicas(int value) { bitField0_ |= 0x00000002; maxReplicas_ = value; onChanged(); return this; } /** * optional int32 max_replicas = 2; * @return This builder for chaining. */ public Builder clearMaxReplicas() { bitField0_ = (bitField0_ & ~0x00000002); maxReplicas_ = 0; onChanged(); return this; } private int maxConcurrencyPerReplica_ ; /** * optional int32 max_concurrency_per_replica = 3; * @return Whether the maxConcurrencyPerReplica field is set. */ @java.lang.Override public boolean hasMaxConcurrencyPerReplica() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 max_concurrency_per_replica = 3; * @return The maxConcurrencyPerReplica. */ @java.lang.Override public int getMaxConcurrencyPerReplica() { return maxConcurrencyPerReplica_; } /** * optional int32 max_concurrency_per_replica = 3; * @param value The maxConcurrencyPerReplica to set. * @return This builder for chaining. */ public Builder setMaxConcurrencyPerReplica(int value) { bitField0_ |= 0x00000004; maxConcurrencyPerReplica_ = value; onChanged(); return this; } /** * optional int32 max_concurrency_per_replica = 3; * @return This builder for chaining. */ public Builder clearMaxConcurrencyPerReplica() { bitField0_ = (bitField0_ & ~0x00000004); maxConcurrencyPerReplica_ = 0; onChanged(); return this; } private int scalePolicy_ = 0; /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return Whether the scalePolicy field is set. */ @java.lang.Override public boolean hasScalePolicy() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return The enum numeric value on the wire for scalePolicy. */ @java.lang.Override public int getScalePolicyValue() { return scalePolicy_; } /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @param value The enum numeric value on the wire for scalePolicy to set. * @return This builder for chaining. */ public Builder setScalePolicyValue(int value) { bitField0_ |= 0x00000008; scalePolicy_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return The scalePolicy. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy getScalePolicy() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy result = com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.valueOf(scalePolicy_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @param value The scalePolicy to set. * @return This builder for chaining. */ public Builder setScalePolicy(com.clickzetta.rm.proto.VirtualClusterProtos.ScalePolicy value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scalePolicy_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.ScalePolicy scale_policy = 4; * @return This builder for chaining. */ public Builder clearScalePolicy() { bitField0_ = (bitField0_ & ~0x00000008); scalePolicy_ = 0; onChanged(); return this; } private java.lang.Object preloadTables_ = ""; /** * optional string preload_tables = 5; * @return Whether the preloadTables field is set. */ public boolean hasPreloadTables() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string preload_tables = 5; * @return The preloadTables. */ public java.lang.String getPreloadTables() { java.lang.Object ref = preloadTables_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); preloadTables_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string preload_tables = 5; * @return The bytes for preloadTables. */ public com.google.protobuf.ByteString getPreloadTablesBytes() { java.lang.Object ref = preloadTables_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preloadTables_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string preload_tables = 5; * @param value The preloadTables to set. * @return This builder for chaining. */ public Builder setPreloadTables( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; preloadTables_ = value; onChanged(); return this; } /** * optional string preload_tables = 5; * @return This builder for chaining. */ public Builder clearPreloadTables() { bitField0_ = (bitField0_ & ~0x00000010); preloadTables_ = getDefaultInstance().getPreloadTables(); onChanged(); return this; } /** * optional string preload_tables = 5; * @param value The bytes for preloadTables to set. * @return This builder for chaining. */ public Builder setPreloadTablesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000010; preloadTables_ = value; 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:com.clickzetta.rm.AnalyticsProperties) } // @@protoc_insertion_point(class_scope:com.clickzetta.rm.AnalyticsProperties) private static final com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties(); } public static com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AnalyticsProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AnalyticsProperties(input, extensionRegistry); } }; 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.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GeneralPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.GeneralProperties) com.google.protobuf.MessageOrBuilder { /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return Whether the clusterMaxSize field is set. */ boolean hasClusterMaxSize(); /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return The enum numeric value on the wire for clusterMaxSize. */ int getClusterMaxSizeValue(); /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return The clusterMaxSize. */ com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterMaxSize(); } /** * Protobuf type {@code com.clickzetta.rm.GeneralProperties} */ public static final class GeneralProperties extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.clickzetta.rm.GeneralProperties) GeneralPropertiesOrBuilder { private static final long serialVersionUID = 0L; // Use GeneralProperties.newBuilder() to construct. private GeneralProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GeneralProperties() { clusterMaxSize_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GeneralProperties(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GeneralProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); bitField0_ |= 0x00000001; clusterMaxSize_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_GeneralProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_GeneralProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.class, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder.class); } private int bitField0_; public static final int CLUSTER_MAX_SIZE_FIELD_NUMBER = 1; private int clusterMaxSize_; /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return Whether the clusterMaxSize field is set. */ @java.lang.Override public boolean hasClusterMaxSize() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return The enum numeric value on the wire for clusterMaxSize. */ @java.lang.Override public int getClusterMaxSizeValue() { return clusterMaxSize_; } /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return The clusterMaxSize. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterMaxSize() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterMaxSize_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.UNRECOGNIZED : result; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, clusterMaxSize_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, clusterMaxSize_); } size += unknownFields.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.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties)) { return super.equals(obj); } com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties other = (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) obj; if (hasClusterMaxSize() != other.hasClusterMaxSize()) return false; if (hasClusterMaxSize()) { if (clusterMaxSize_ != other.clusterMaxSize_) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasClusterMaxSize()) { hash = (37 * hash) + CLUSTER_MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + clusterMaxSize_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties 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.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties 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.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties 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.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties 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; } /** * Protobuf type {@code com.clickzetta.rm.GeneralProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.GeneralProperties) com.clickzetta.rm.proto.VirtualClusterProtos.GeneralPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_GeneralProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_GeneralProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.class, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder.class); } // Construct using com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); clusterMaxSize_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_GeneralProperties_descriptor; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties getDefaultInstanceForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance(); } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties build() { com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties buildPartial() { com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties result = new com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.clusterMaxSize_ = clusterMaxSize_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) { return mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties other) { if (other == com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance()) return this; if (other.hasClusterMaxSize()) { setClusterMaxSize(other.getClusterMaxSize()); } this.mergeUnknownFields(other.unknownFields); 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 { com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int clusterMaxSize_ = 0; /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return Whether the clusterMaxSize field is set. */ @java.lang.Override public boolean hasClusterMaxSize() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return The enum numeric value on the wire for clusterMaxSize. */ @java.lang.Override public int getClusterMaxSizeValue() { return clusterMaxSize_; } /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @param value The enum numeric value on the wire for clusterMaxSize to set. * @return This builder for chaining. */ public Builder setClusterMaxSizeValue(int value) { bitField0_ |= 0x00000001; clusterMaxSize_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return The clusterMaxSize. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterMaxSize() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterMaxSize_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @param value The clusterMaxSize to set. * @return This builder for chaining. */ public Builder setClusterMaxSize(com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clusterMaxSize_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterSize cluster_max_size = 1; * @return This builder for chaining. */ public Builder clearClusterMaxSize() { bitField0_ = (bitField0_ & ~0x00000001); clusterMaxSize_ = 0; 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:com.clickzetta.rm.GeneralProperties) } // @@protoc_insertion_point(class_scope:com.clickzetta.rm.GeneralProperties) private static final com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties(); } public static com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GeneralProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GeneralProperties(input, extensionRegistry); } }; 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.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VCResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.VCResource) com.google.protobuf.MessageOrBuilder { /** * optional int64 memory = 1; * @return Whether the memory field is set. */ boolean hasMemory(); /** * optional int64 memory = 1; * @return The memory. */ long getMemory(); /** * optional int32 virtual_cores = 2; * @return Whether the virtualCores field is set. */ boolean hasVirtualCores(); /** * optional int32 virtual_cores = 2; * @return The virtualCores. */ int getVirtualCores(); } /** * Protobuf type {@code com.clickzetta.rm.VCResource} */ public static final class VCResource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.clickzetta.rm.VCResource) VCResourceOrBuilder { private static final long serialVersionUID = 0L; // Use VCResource.newBuilder() to construct. private VCResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VCResource() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VCResource(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VCResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bitField0_ |= 0x00000001; memory_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; virtualCores_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VCResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VCResource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.VCResource.class, com.clickzetta.rm.proto.VirtualClusterProtos.VCResource.Builder.class); } private int bitField0_; public static final int MEMORY_FIELD_NUMBER = 1; private long memory_; /** * optional int64 memory = 1; * @return Whether the memory field is set. */ @java.lang.Override public boolean hasMemory() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 memory = 1; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } public static final int VIRTUAL_CORES_FIELD_NUMBER = 2; private int virtualCores_; /** * optional int32 virtual_cores = 2; * @return Whether the virtualCores field is set. */ @java.lang.Override public boolean hasVirtualCores() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 virtual_cores = 2; * @return The virtualCores. */ @java.lang.Override public int getVirtualCores() { return virtualCores_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, memory_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, virtualCores_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, memory_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, virtualCores_); } size += unknownFields.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.clickzetta.rm.proto.VirtualClusterProtos.VCResource)) { return super.equals(obj); } com.clickzetta.rm.proto.VirtualClusterProtos.VCResource other = (com.clickzetta.rm.proto.VirtualClusterProtos.VCResource) obj; if (hasMemory() != other.hasMemory()) return false; if (hasMemory()) { if (getMemory() != other.getMemory()) return false; } if (hasVirtualCores() != other.hasVirtualCores()) return false; if (hasVirtualCores()) { if (getVirtualCores() != other.getVirtualCores()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMemory()) { hash = (37 * hash) + MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemory()); } if (hasVirtualCores()) { hash = (37 * hash) + VIRTUAL_CORES_FIELD_NUMBER; hash = (53 * hash) + getVirtualCores(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource 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.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource 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.clickzetta.rm.proto.VirtualClusterProtos.VCResource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource 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.clickzetta.rm.proto.VirtualClusterProtos.VCResource 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; } /** * Protobuf type {@code com.clickzetta.rm.VCResource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.VCResource) com.clickzetta.rm.proto.VirtualClusterProtos.VCResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VCResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VCResource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.VCResource.class, com.clickzetta.rm.proto.VirtualClusterProtos.VCResource.Builder.class); } // Construct using com.clickzetta.rm.proto.VirtualClusterProtos.VCResource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); memory_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); virtualCores_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VCResource_descriptor; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VCResource getDefaultInstanceForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.VCResource.getDefaultInstance(); } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VCResource build() { com.clickzetta.rm.proto.VirtualClusterProtos.VCResource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VCResource buildPartial() { com.clickzetta.rm.proto.VirtualClusterProtos.VCResource result = new com.clickzetta.rm.proto.VirtualClusterProtos.VCResource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.memory_ = memory_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.virtualCores_ = virtualCores_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.clickzetta.rm.proto.VirtualClusterProtos.VCResource) { return mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.VCResource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clickzetta.rm.proto.VirtualClusterProtos.VCResource other) { if (other == com.clickzetta.rm.proto.VirtualClusterProtos.VCResource.getDefaultInstance()) return this; if (other.hasMemory()) { setMemory(other.getMemory()); } if (other.hasVirtualCores()) { setVirtualCores(other.getVirtualCores()); } this.mergeUnknownFields(other.unknownFields); 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 { com.clickzetta.rm.proto.VirtualClusterProtos.VCResource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clickzetta.rm.proto.VirtualClusterProtos.VCResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long memory_ ; /** * optional int64 memory = 1; * @return Whether the memory field is set. */ @java.lang.Override public boolean hasMemory() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 memory = 1; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } /** * optional int64 memory = 1; * @param value The memory to set. * @return This builder for chaining. */ public Builder setMemory(long value) { bitField0_ |= 0x00000001; memory_ = value; onChanged(); return this; } /** * optional int64 memory = 1; * @return This builder for chaining. */ public Builder clearMemory() { bitField0_ = (bitField0_ & ~0x00000001); memory_ = 0L; onChanged(); return this; } private int virtualCores_ ; /** * optional int32 virtual_cores = 2; * @return Whether the virtualCores field is set. */ @java.lang.Override public boolean hasVirtualCores() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 virtual_cores = 2; * @return The virtualCores. */ @java.lang.Override public int getVirtualCores() { return virtualCores_; } /** * optional int32 virtual_cores = 2; * @param value The virtualCores to set. * @return This builder for chaining. */ public Builder setVirtualCores(int value) { bitField0_ |= 0x00000002; virtualCores_ = value; onChanged(); return this; } /** * optional int32 virtual_cores = 2; * @return This builder for chaining. */ public Builder clearVirtualCores() { bitField0_ = (bitField0_ & ~0x00000002); virtualCores_ = 0; 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:com.clickzetta.rm.VCResource) } // @@protoc_insertion_point(class_scope:com.clickzetta.rm.VCResource) private static final com.clickzetta.rm.proto.VirtualClusterProtos.VCResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clickzetta.rm.proto.VirtualClusterProtos.VCResource(); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VCResource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VCResource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VCResource(input, extensionRegistry); } }; 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.clickzetta.rm.proto.VirtualClusterProtos.VCResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VirtualClusterPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.VirtualClusterProperties) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; * @return Whether the name field is set. */ boolean hasName(); /** * optional string name = 1; * @return The name. */ java.lang.String getName(); /** * optional string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional int64 instance_id = 2; * @return Whether the instanceId field is set. */ boolean hasInstanceId(); /** * optional int64 instance_id = 2; * @return The instanceId. */ long getInstanceId(); /** * optional int64 workspace_id = 3; * @return Whether the workspaceId field is set. */ boolean hasWorkspaceId(); /** * optional int64 workspace_id = 3; * @return The workspaceId. */ long getWorkspaceId(); /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return Whether the clusterType field is set. */ boolean hasClusterType(); /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return The enum numeric value on the wire for clusterType. */ int getClusterTypeValue(); /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return The clusterType. */ com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType getClusterType(); /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return Whether the clusterSize field is set. */ boolean hasClusterSize(); /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return The enum numeric value on the wire for clusterSize. */ int getClusterSizeValue(); /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return The clusterSize. */ com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterSize(); /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; * @return Whether the analyticsProperties field is set. */ boolean hasAnalyticsProperties(); /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; * @return The analyticsProperties. */ com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties getAnalyticsProperties(); /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsPropertiesOrBuilder getAnalyticsPropertiesOrBuilder(); /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; * @return Whether the generalProperties field is set. */ boolean hasGeneralProperties(); /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; * @return The generalProperties. */ com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties getGeneralProperties(); /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ com.clickzetta.rm.proto.VirtualClusterProtos.GeneralPropertiesOrBuilder getGeneralPropertiesOrBuilder(); /** * optional int32 auto_stop_latency_sec = 8; * @return Whether the autoStopLatencySec field is set. */ boolean hasAutoStopLatencySec(); /** * optional int32 auto_stop_latency_sec = 8; * @return The autoStopLatencySec. */ int getAutoStopLatencySec(); /** * optional bool auto_start_enabled = 9; * @return Whether the autoStartEnabled field is set. */ boolean hasAutoStartEnabled(); /** * optional bool auto_start_enabled = 9; * @return The autoStartEnabled. */ boolean getAutoStartEnabled(); /** * map<string, string> tag = 10; */ int getTagCount(); /** * map<string, string> tag = 10; */ boolean containsTag( java.lang.String key); /** * Use {@link #getTagMap()} instead. */ @java.lang.Deprecated java.util.Map getTag(); /** * map<string, string> tag = 10; */ java.util.Map getTagMap(); /** * map<string, string> tag = 10; */ java.lang.String getTagOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> tag = 10; */ java.lang.String getTagOrThrow( java.lang.String key); /** * optional string comment = 11; * @return Whether the comment field is set. */ boolean hasComment(); /** * optional string comment = 11; * @return The comment. */ java.lang.String getComment(); /** * optional string comment = 11; * @return The bytes for comment. */ com.google.protobuf.ByteString getCommentBytes(); /** * optional int32 query_process_time_limit_sec = 13; * @return Whether the queryProcessTimeLimitSec field is set. */ boolean hasQueryProcessTimeLimitSec(); /** * optional int32 query_process_time_limit_sec = 13; * @return The queryProcessTimeLimitSec. */ int getQueryProcessTimeLimitSec(); /** * optional int64 create_time_ms = 14; * @return Whether the createTimeMs field is set. */ boolean hasCreateTimeMs(); /** * optional int64 create_time_ms = 14; * @return The createTimeMs. */ long getCreateTimeMs(); /** * optional int64 last_modify_time_ms = 15; * @return Whether the lastModifyTimeMs field is set. */ boolean hasLastModifyTimeMs(); /** * optional int64 last_modify_time_ms = 15; * @return The lastModifyTimeMs. */ long getLastModifyTimeMs(); /** * optional int64 creator_user_id = 16; * @return Whether the creatorUserId field is set. */ boolean hasCreatorUserId(); /** * optional int64 creator_user_id = 16; * @return The creatorUserId. */ long getCreatorUserId(); /** * optional string version = 17; * @return Whether the version field is set. */ boolean hasVersion(); /** * optional string version = 17; * @return The version. */ java.lang.String getVersion(); /** * optional string version = 17; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.ResourceOneofCase getResourceOneofCase(); } /** * Protobuf type {@code com.clickzetta.rm.VirtualClusterProperties} */ public static final class VirtualClusterProperties extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.clickzetta.rm.VirtualClusterProperties) VirtualClusterPropertiesOrBuilder { private static final long serialVersionUID = 0L; // Use VirtualClusterProperties.newBuilder() to construct. private VirtualClusterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VirtualClusterProperties() { name_ = ""; clusterType_ = 0; clusterSize_ = 0; comment_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VirtualClusterProperties(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VirtualClusterProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; name_ = s; break; } case 16: { bitField0_ |= 0x00000002; instanceId_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; workspaceId_ = input.readInt64(); break; } case 32: { int rawValue = input.readEnum(); bitField0_ |= 0x00000008; clusterType_ = rawValue; break; } case 40: { int rawValue = input.readEnum(); bitField0_ |= 0x00000010; clusterSize_ = rawValue; break; } case 50: { com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder subBuilder = null; if (resourceOneofCase_ == 6) { subBuilder = ((com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_).toBuilder(); } resourceOneof_ = input.readMessage(com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_); resourceOneof_ = subBuilder.buildPartial(); } resourceOneofCase_ = 6; break; } case 58: { com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder subBuilder = null; if (resourceOneofCase_ == 7) { subBuilder = ((com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_).toBuilder(); } resourceOneof_ = input.readMessage(com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_); resourceOneof_ = subBuilder.buildPartial(); } resourceOneofCase_ = 7; break; } case 64: { bitField0_ |= 0x00000020; autoStopLatencySec_ = input.readInt32(); break; } case 72: { bitField0_ |= 0x00000040; autoStartEnabled_ = input.readBool(); break; } case 82: { if (!((mutable_bitField0_ & 0x00000080) != 0)) { tag_ = com.google.protobuf.MapField.newMapField( TagDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000080; } com.google.protobuf.MapEntry tag__ = input.readMessage( TagDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); tag_.getMutableMap().put( tag__.getKey(), tag__.getValue()); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; comment_ = s; break; } case 104: { bitField0_ |= 0x00000100; queryProcessTimeLimitSec_ = input.readInt32(); break; } case 112: { bitField0_ |= 0x00000200; createTimeMs_ = input.readInt64(); break; } case 120: { bitField0_ |= 0x00000400; lastModifyTimeMs_ = input.readInt64(); break; } case 128: { bitField0_ |= 0x00000800; creatorUserId_ = input.readInt64(); break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; version_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VirtualClusterProperties_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetTag(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VirtualClusterProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.class, com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.Builder.class); } private int bitField0_; private int resourceOneofCase_ = 0; private java.lang.Object resourceOneof_; public enum ResourceOneofCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ANALYTICS_PROPERTIES(6), GENERAL_PROPERTIES(7), RESOURCEONEOF_NOT_SET(0); private final int value; private ResourceOneofCase(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 ResourceOneofCase valueOf(int value) { return forNumber(value); } public static ResourceOneofCase forNumber(int value) { switch (value) { case 6: return ANALYTICS_PROPERTIES; case 7: return GENERAL_PROPERTIES; case 0: return RESOURCEONEOF_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResourceOneofCase getResourceOneofCase() { return ResourceOneofCase.forNumber( resourceOneofCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * optional string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTANCE_ID_FIELD_NUMBER = 2; private long instanceId_; /** * optional int64 instance_id = 2; * @return Whether the instanceId field is set. */ @java.lang.Override public boolean hasInstanceId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 instance_id = 2; * @return The instanceId. */ @java.lang.Override public long getInstanceId() { return instanceId_; } public static final int WORKSPACE_ID_FIELD_NUMBER = 3; private long workspaceId_; /** * optional int64 workspace_id = 3; * @return Whether the workspaceId field is set. */ @java.lang.Override public boolean hasWorkspaceId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 workspace_id = 3; * @return The workspaceId. */ @java.lang.Override public long getWorkspaceId() { return workspaceId_; } public static final int CLUSTER_TYPE_FIELD_NUMBER = 4; private int clusterType_; /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return Whether the clusterType field is set. */ @java.lang.Override public boolean hasClusterType() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return The enum numeric value on the wire for clusterType. */ @java.lang.Override public int getClusterTypeValue() { return clusterType_; } /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return The clusterType. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType getClusterType() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.valueOf(clusterType_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.UNRECOGNIZED : result; } public static final int CLUSTER_SIZE_FIELD_NUMBER = 5; private int clusterSize_; /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return Whether the clusterSize field is set. */ @java.lang.Override public boolean hasClusterSize() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return The enum numeric value on the wire for clusterSize. */ @java.lang.Override public int getClusterSizeValue() { return clusterSize_; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return The clusterSize. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterSize() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterSize_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.UNRECOGNIZED : result; } public static final int ANALYTICS_PROPERTIES_FIELD_NUMBER = 6; /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; * @return Whether the analyticsProperties field is set. */ @java.lang.Override public boolean hasAnalyticsProperties() { return resourceOneofCase_ == 6; } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; * @return The analyticsProperties. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties getAnalyticsProperties() { if (resourceOneofCase_ == 6) { return (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance(); } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsPropertiesOrBuilder getAnalyticsPropertiesOrBuilder() { if (resourceOneofCase_ == 6) { return (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance(); } public static final int GENERAL_PROPERTIES_FIELD_NUMBER = 7; /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; * @return Whether the generalProperties field is set. */ @java.lang.Override public boolean hasGeneralProperties() { return resourceOneofCase_ == 7; } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; * @return The generalProperties. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties getGeneralProperties() { if (resourceOneofCase_ == 7) { return (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance(); } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralPropertiesOrBuilder getGeneralPropertiesOrBuilder() { if (resourceOneofCase_ == 7) { return (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance(); } public static final int AUTO_STOP_LATENCY_SEC_FIELD_NUMBER = 8; private int autoStopLatencySec_; /** * optional int32 auto_stop_latency_sec = 8; * @return Whether the autoStopLatencySec field is set. */ @java.lang.Override public boolean hasAutoStopLatencySec() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int32 auto_stop_latency_sec = 8; * @return The autoStopLatencySec. */ @java.lang.Override public int getAutoStopLatencySec() { return autoStopLatencySec_; } public static final int AUTO_START_ENABLED_FIELD_NUMBER = 9; private boolean autoStartEnabled_; /** * optional bool auto_start_enabled = 9; * @return Whether the autoStartEnabled field is set. */ @java.lang.Override public boolean hasAutoStartEnabled() { return ((bitField0_ & 0x00000040) != 0); } /** * optional bool auto_start_enabled = 9; * @return The autoStartEnabled. */ @java.lang.Override public boolean getAutoStartEnabled() { return autoStartEnabled_; } public static final int TAG_FIELD_NUMBER = 10; private static final class TagDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VirtualClusterProperties_TagEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> tag_; private com.google.protobuf.MapField internalGetTag() { if (tag_ == null) { return com.google.protobuf.MapField.emptyMapField( TagDefaultEntryHolder.defaultEntry); } return tag_; } public int getTagCount() { return internalGetTag().getMap().size(); } /** * map<string, string> tag = 10; */ @java.lang.Override public boolean containsTag( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTag().getMap().containsKey(key); } /** * Use {@link #getTagMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTag() { return getTagMap(); } /** * map<string, string> tag = 10; */ @java.lang.Override public java.util.Map getTagMap() { return internalGetTag().getMap(); } /** * map<string, string> tag = 10; */ @java.lang.Override public java.lang.String getTagOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> tag = 10; */ @java.lang.Override public java.lang.String getTagOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int COMMENT_FIELD_NUMBER = 11; private volatile java.lang.Object comment_; /** * optional string comment = 11; * @return Whether the comment field is set. */ @java.lang.Override public boolean hasComment() { return ((bitField0_ & 0x00000080) != 0); } /** * optional string comment = 11; * @return The comment. */ @java.lang.Override public java.lang.String getComment() { java.lang.Object ref = comment_; 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(); comment_ = s; return s; } } /** * optional string comment = 11; * @return The bytes for comment. */ @java.lang.Override public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_PROCESS_TIME_LIMIT_SEC_FIELD_NUMBER = 13; private int queryProcessTimeLimitSec_; /** * optional int32 query_process_time_limit_sec = 13; * @return Whether the queryProcessTimeLimitSec field is set. */ @java.lang.Override public boolean hasQueryProcessTimeLimitSec() { return ((bitField0_ & 0x00000100) != 0); } /** * optional int32 query_process_time_limit_sec = 13; * @return The queryProcessTimeLimitSec. */ @java.lang.Override public int getQueryProcessTimeLimitSec() { return queryProcessTimeLimitSec_; } public static final int CREATE_TIME_MS_FIELD_NUMBER = 14; private long createTimeMs_; /** * optional int64 create_time_ms = 14; * @return Whether the createTimeMs field is set. */ @java.lang.Override public boolean hasCreateTimeMs() { return ((bitField0_ & 0x00000200) != 0); } /** * optional int64 create_time_ms = 14; * @return The createTimeMs. */ @java.lang.Override public long getCreateTimeMs() { return createTimeMs_; } public static final int LAST_MODIFY_TIME_MS_FIELD_NUMBER = 15; private long lastModifyTimeMs_; /** * optional int64 last_modify_time_ms = 15; * @return Whether the lastModifyTimeMs field is set. */ @java.lang.Override public boolean hasLastModifyTimeMs() { return ((bitField0_ & 0x00000400) != 0); } /** * optional int64 last_modify_time_ms = 15; * @return The lastModifyTimeMs. */ @java.lang.Override public long getLastModifyTimeMs() { return lastModifyTimeMs_; } public static final int CREATOR_USER_ID_FIELD_NUMBER = 16; private long creatorUserId_; /** * optional int64 creator_user_id = 16; * @return Whether the creatorUserId field is set. */ @java.lang.Override public boolean hasCreatorUserId() { return ((bitField0_ & 0x00000800) != 0); } /** * optional int64 creator_user_id = 16; * @return The creatorUserId. */ @java.lang.Override public long getCreatorUserId() { return creatorUserId_; } public static final int VERSION_FIELD_NUMBER = 17; private volatile java.lang.Object version_; /** * optional string version = 17; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00001000) != 0); } /** * optional string version = 17; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** * optional string version = 17; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, instanceId_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, workspaceId_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, clusterType_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, clusterSize_); } if (resourceOneofCase_ == 6) { output.writeMessage(6, (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_); } if (resourceOneofCase_ == 7) { output.writeMessage(7, (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(8, autoStopLatencySec_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(9, autoStartEnabled_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTag(), TagDefaultEntryHolder.defaultEntry, 10); if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, comment_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt32(13, queryProcessTimeLimitSec_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt64(14, createTimeMs_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeInt64(15, lastModifyTimeMs_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeInt64(16, creatorUserId_); } if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, version_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, instanceId_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, workspaceId_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, clusterType_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, clusterSize_); } if (resourceOneofCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_); } if (resourceOneofCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, autoStopLatencySec_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, autoStartEnabled_); } for (java.util.Map.Entry entry : internalGetTag().getMap().entrySet()) { com.google.protobuf.MapEntry tag__ = TagDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, tag__); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, comment_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, queryProcessTimeLimitSec_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, createTimeMs_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, lastModifyTimeMs_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, creatorUserId_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, version_); } size += unknownFields.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.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties)) { return super.equals(obj); } com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties other = (com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasInstanceId() != other.hasInstanceId()) return false; if (hasInstanceId()) { if (getInstanceId() != other.getInstanceId()) return false; } if (hasWorkspaceId() != other.hasWorkspaceId()) return false; if (hasWorkspaceId()) { if (getWorkspaceId() != other.getWorkspaceId()) return false; } if (hasClusterType() != other.hasClusterType()) return false; if (hasClusterType()) { if (clusterType_ != other.clusterType_) return false; } if (hasClusterSize() != other.hasClusterSize()) return false; if (hasClusterSize()) { if (clusterSize_ != other.clusterSize_) return false; } if (hasAutoStopLatencySec() != other.hasAutoStopLatencySec()) return false; if (hasAutoStopLatencySec()) { if (getAutoStopLatencySec() != other.getAutoStopLatencySec()) return false; } if (hasAutoStartEnabled() != other.hasAutoStartEnabled()) return false; if (hasAutoStartEnabled()) { if (getAutoStartEnabled() != other.getAutoStartEnabled()) return false; } if (!internalGetTag().equals( other.internalGetTag())) return false; if (hasComment() != other.hasComment()) return false; if (hasComment()) { if (!getComment() .equals(other.getComment())) return false; } if (hasQueryProcessTimeLimitSec() != other.hasQueryProcessTimeLimitSec()) return false; if (hasQueryProcessTimeLimitSec()) { if (getQueryProcessTimeLimitSec() != other.getQueryProcessTimeLimitSec()) return false; } if (hasCreateTimeMs() != other.hasCreateTimeMs()) return false; if (hasCreateTimeMs()) { if (getCreateTimeMs() != other.getCreateTimeMs()) return false; } if (hasLastModifyTimeMs() != other.hasLastModifyTimeMs()) return false; if (hasLastModifyTimeMs()) { if (getLastModifyTimeMs() != other.getLastModifyTimeMs()) return false; } if (hasCreatorUserId() != other.hasCreatorUserId()) return false; if (hasCreatorUserId()) { if (getCreatorUserId() != other.getCreatorUserId()) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (!getVersion() .equals(other.getVersion())) return false; } if (!getResourceOneofCase().equals(other.getResourceOneofCase())) return false; switch (resourceOneofCase_) { case 6: if (!getAnalyticsProperties() .equals(other.getAnalyticsProperties())) return false; break; case 7: if (!getGeneralProperties() .equals(other.getGeneralProperties())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasInstanceId()) { hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInstanceId()); } if (hasWorkspaceId()) { hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkspaceId()); } if (hasClusterType()) { hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER; hash = (53 * hash) + clusterType_; } if (hasClusterSize()) { hash = (37 * hash) + CLUSTER_SIZE_FIELD_NUMBER; hash = (53 * hash) + clusterSize_; } if (hasAutoStopLatencySec()) { hash = (37 * hash) + AUTO_STOP_LATENCY_SEC_FIELD_NUMBER; hash = (53 * hash) + getAutoStopLatencySec(); } if (hasAutoStartEnabled()) { hash = (37 * hash) + AUTO_START_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoStartEnabled()); } if (!internalGetTag().getMap().isEmpty()) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + internalGetTag().hashCode(); } if (hasComment()) { hash = (37 * hash) + COMMENT_FIELD_NUMBER; hash = (53 * hash) + getComment().hashCode(); } if (hasQueryProcessTimeLimitSec()) { hash = (37 * hash) + QUERY_PROCESS_TIME_LIMIT_SEC_FIELD_NUMBER; hash = (53 * hash) + getQueryProcessTimeLimitSec(); } if (hasCreateTimeMs()) { hash = (37 * hash) + CREATE_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateTimeMs()); } if (hasLastModifyTimeMs()) { hash = (37 * hash) + LAST_MODIFY_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastModifyTimeMs()); } if (hasCreatorUserId()) { hash = (37 * hash) + CREATOR_USER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreatorUserId()); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } switch (resourceOneofCase_) { case 6: hash = (37 * hash) + ANALYTICS_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getAnalyticsProperties().hashCode(); break; case 7: hash = (37 * hash) + GENERAL_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getGeneralProperties().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties 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.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties 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.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties 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.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties 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; } /** * Protobuf type {@code com.clickzetta.rm.VirtualClusterProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.VirtualClusterProperties) com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VirtualClusterProperties_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetTag(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 10: return internalGetMutableTag(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VirtualClusterProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.class, com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.Builder.class); } // Construct using com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); instanceId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); workspaceId_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); clusterType_ = 0; bitField0_ = (bitField0_ & ~0x00000008); clusterSize_ = 0; bitField0_ = (bitField0_ & ~0x00000010); autoStopLatencySec_ = 0; bitField0_ = (bitField0_ & ~0x00000020); autoStartEnabled_ = false; bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableTag().clear(); comment_ = ""; bitField0_ = (bitField0_ & ~0x00000100); queryProcessTimeLimitSec_ = 0; bitField0_ = (bitField0_ & ~0x00000200); createTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); lastModifyTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); creatorUserId_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); version_ = ""; bitField0_ = (bitField0_ & ~0x00002000); resourceOneofCase_ = 0; resourceOneof_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VirtualClusterProperties_descriptor; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties getDefaultInstanceForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.getDefaultInstance(); } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties build() { com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties buildPartial() { com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties result = new com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { result.instanceId_ = instanceId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.workspaceId_ = workspaceId_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.clusterType_ = clusterType_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.clusterSize_ = clusterSize_; if (resourceOneofCase_ == 6) { if (analyticsPropertiesBuilder_ == null) { result.resourceOneof_ = resourceOneof_; } else { result.resourceOneof_ = analyticsPropertiesBuilder_.build(); } } if (resourceOneofCase_ == 7) { if (generalPropertiesBuilder_ == null) { result.resourceOneof_ = resourceOneof_; } else { result.resourceOneof_ = generalPropertiesBuilder_.build(); } } if (((from_bitField0_ & 0x00000020) != 0)) { result.autoStopLatencySec_ = autoStopLatencySec_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.autoStartEnabled_ = autoStartEnabled_; to_bitField0_ |= 0x00000040; } result.tag_ = internalGetTag(); result.tag_.makeImmutable(); if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000080; } result.comment_ = comment_; if (((from_bitField0_ & 0x00000200) != 0)) { result.queryProcessTimeLimitSec_ = queryProcessTimeLimitSec_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { result.createTimeMs_ = createTimeMs_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000800) != 0)) { result.lastModifyTimeMs_ = lastModifyTimeMs_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00001000) != 0)) { result.creatorUserId_ = creatorUserId_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00002000) != 0)) { to_bitField0_ |= 0x00001000; } result.version_ = version_; result.bitField0_ = to_bitField0_; result.resourceOneofCase_ = resourceOneofCase_; onBuilt(); return result; } @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.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties) { return mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties other) { if (other == com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasInstanceId()) { setInstanceId(other.getInstanceId()); } if (other.hasWorkspaceId()) { setWorkspaceId(other.getWorkspaceId()); } if (other.hasClusterType()) { setClusterType(other.getClusterType()); } if (other.hasClusterSize()) { setClusterSize(other.getClusterSize()); } if (other.hasAutoStopLatencySec()) { setAutoStopLatencySec(other.getAutoStopLatencySec()); } if (other.hasAutoStartEnabled()) { setAutoStartEnabled(other.getAutoStartEnabled()); } internalGetMutableTag().mergeFrom( other.internalGetTag()); if (other.hasComment()) { bitField0_ |= 0x00000100; comment_ = other.comment_; onChanged(); } if (other.hasQueryProcessTimeLimitSec()) { setQueryProcessTimeLimitSec(other.getQueryProcessTimeLimitSec()); } if (other.hasCreateTimeMs()) { setCreateTimeMs(other.getCreateTimeMs()); } if (other.hasLastModifyTimeMs()) { setLastModifyTimeMs(other.getLastModifyTimeMs()); } if (other.hasCreatorUserId()) { setCreatorUserId(other.getCreatorUserId()); } if (other.hasVersion()) { bitField0_ |= 0x00002000; version_ = other.version_; onChanged(); } switch (other.getResourceOneofCase()) { case ANALYTICS_PROPERTIES: { mergeAnalyticsProperties(other.getAnalyticsProperties()); break; } case GENERAL_PROPERTIES: { mergeGeneralProperties(other.getGeneralProperties()); break; } case RESOURCEONEOF_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int resourceOneofCase_ = 0; private java.lang.Object resourceOneof_; public ResourceOneofCase getResourceOneofCase() { return ResourceOneofCase.forNumber( resourceOneofCase_); } public Builder clearResourceOneof() { resourceOneofCase_ = 0; resourceOneof_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * optional string name = 1; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private long instanceId_ ; /** * optional int64 instance_id = 2; * @return Whether the instanceId field is set. */ @java.lang.Override public boolean hasInstanceId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 instance_id = 2; * @return The instanceId. */ @java.lang.Override public long getInstanceId() { return instanceId_; } /** * optional int64 instance_id = 2; * @param value The instanceId to set. * @return This builder for chaining. */ public Builder setInstanceId(long value) { bitField0_ |= 0x00000002; instanceId_ = value; onChanged(); return this; } /** * optional int64 instance_id = 2; * @return This builder for chaining. */ public Builder clearInstanceId() { bitField0_ = (bitField0_ & ~0x00000002); instanceId_ = 0L; onChanged(); return this; } private long workspaceId_ ; /** * optional int64 workspace_id = 3; * @return Whether the workspaceId field is set. */ @java.lang.Override public boolean hasWorkspaceId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 workspace_id = 3; * @return The workspaceId. */ @java.lang.Override public long getWorkspaceId() { return workspaceId_; } /** * optional int64 workspace_id = 3; * @param value The workspaceId to set. * @return This builder for chaining. */ public Builder setWorkspaceId(long value) { bitField0_ |= 0x00000004; workspaceId_ = value; onChanged(); return this; } /** * optional int64 workspace_id = 3; * @return This builder for chaining. */ public Builder clearWorkspaceId() { bitField0_ = (bitField0_ & ~0x00000004); workspaceId_ = 0L; onChanged(); return this; } private int clusterType_ = 0; /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return Whether the clusterType field is set. */ @java.lang.Override public boolean hasClusterType() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return The enum numeric value on the wire for clusterType. */ @java.lang.Override public int getClusterTypeValue() { return clusterType_; } /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @param value The enum numeric value on the wire for clusterType to set. * @return This builder for chaining. */ public Builder setClusterTypeValue(int value) { bitField0_ |= 0x00000008; clusterType_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return The clusterType. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType getClusterType() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.valueOf(clusterType_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @param value The clusterType to set. * @return This builder for chaining. */ public Builder setClusterType(com.clickzetta.rm.proto.VirtualClusterProtos.VClusterType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; clusterType_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterType cluster_type = 4; * @return This builder for chaining. */ public Builder clearClusterType() { bitField0_ = (bitField0_ & ~0x00000008); clusterType_ = 0; onChanged(); return this; } private int clusterSize_ = 0; /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return Whether the clusterSize field is set. */ @java.lang.Override public boolean hasClusterSize() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return The enum numeric value on the wire for clusterSize. */ @java.lang.Override public int getClusterSizeValue() { return clusterSize_; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @param value The enum numeric value on the wire for clusterSize to set. * @return This builder for chaining. */ public Builder setClusterSizeValue(int value) { bitField0_ |= 0x00000010; clusterSize_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return The clusterSize. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize getClusterSize() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize result = com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.valueOf(clusterSize_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @param value The clusterSize to set. * @return This builder for chaining. */ public Builder setClusterSize(com.clickzetta.rm.proto.VirtualClusterProtos.VClusterSize value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; clusterSize_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.VClusterSize cluster_size = 5; * @return This builder for chaining. */ public Builder clearClusterSize() { bitField0_ = (bitField0_ & ~0x00000010); clusterSize_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsPropertiesOrBuilder> analyticsPropertiesBuilder_; /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; * @return Whether the analyticsProperties field is set. */ @java.lang.Override public boolean hasAnalyticsProperties() { return resourceOneofCase_ == 6; } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; * @return The analyticsProperties. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties getAnalyticsProperties() { if (analyticsPropertiesBuilder_ == null) { if (resourceOneofCase_ == 6) { return (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance(); } else { if (resourceOneofCase_ == 6) { return analyticsPropertiesBuilder_.getMessage(); } return com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance(); } } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ public Builder setAnalyticsProperties(com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties value) { if (analyticsPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceOneof_ = value; onChanged(); } else { analyticsPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 6; return this; } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ public Builder setAnalyticsProperties( com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder builderForValue) { if (analyticsPropertiesBuilder_ == null) { resourceOneof_ = builderForValue.build(); onChanged(); } else { analyticsPropertiesBuilder_.setMessage(builderForValue.build()); } resourceOneofCase_ = 6; return this; } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ public Builder mergeAnalyticsProperties(com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties value) { if (analyticsPropertiesBuilder_ == null) { if (resourceOneofCase_ == 6 && resourceOneof_ != com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance()) { resourceOneof_ = com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.newBuilder((com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_) .mergeFrom(value).buildPartial(); } else { resourceOneof_ = value; } onChanged(); } else { if (resourceOneofCase_ == 6) { analyticsPropertiesBuilder_.mergeFrom(value); } analyticsPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 6; return this; } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ public Builder clearAnalyticsProperties() { if (analyticsPropertiesBuilder_ == null) { if (resourceOneofCase_ == 6) { resourceOneofCase_ = 0; resourceOneof_ = null; onChanged(); } } else { if (resourceOneofCase_ == 6) { resourceOneofCase_ = 0; resourceOneof_ = null; } analyticsPropertiesBuilder_.clear(); } return this; } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder getAnalyticsPropertiesBuilder() { return getAnalyticsPropertiesFieldBuilder().getBuilder(); } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsPropertiesOrBuilder getAnalyticsPropertiesOrBuilder() { if ((resourceOneofCase_ == 6) && (analyticsPropertiesBuilder_ != null)) { return analyticsPropertiesBuilder_.getMessageOrBuilder(); } else { if (resourceOneofCase_ == 6) { return (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance(); } } /** * .com.clickzetta.rm.AnalyticsProperties analytics_properties = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsPropertiesOrBuilder> getAnalyticsPropertiesFieldBuilder() { if (analyticsPropertiesBuilder_ == null) { if (!(resourceOneofCase_ == 6)) { resourceOneof_ = com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.getDefaultInstance(); } analyticsPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties.Builder, com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsPropertiesOrBuilder>( (com.clickzetta.rm.proto.VirtualClusterProtos.AnalyticsProperties) resourceOneof_, getParentForChildren(), isClean()); resourceOneof_ = null; } resourceOneofCase_ = 6; onChanged();; return analyticsPropertiesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralPropertiesOrBuilder> generalPropertiesBuilder_; /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; * @return Whether the generalProperties field is set. */ @java.lang.Override public boolean hasGeneralProperties() { return resourceOneofCase_ == 7; } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; * @return The generalProperties. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties getGeneralProperties() { if (generalPropertiesBuilder_ == null) { if (resourceOneofCase_ == 7) { return (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance(); } else { if (resourceOneofCase_ == 7) { return generalPropertiesBuilder_.getMessage(); } return com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance(); } } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ public Builder setGeneralProperties(com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties value) { if (generalPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceOneof_ = value; onChanged(); } else { generalPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 7; return this; } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ public Builder setGeneralProperties( com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder builderForValue) { if (generalPropertiesBuilder_ == null) { resourceOneof_ = builderForValue.build(); onChanged(); } else { generalPropertiesBuilder_.setMessage(builderForValue.build()); } resourceOneofCase_ = 7; return this; } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ public Builder mergeGeneralProperties(com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties value) { if (generalPropertiesBuilder_ == null) { if (resourceOneofCase_ == 7 && resourceOneof_ != com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance()) { resourceOneof_ = com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.newBuilder((com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_) .mergeFrom(value).buildPartial(); } else { resourceOneof_ = value; } onChanged(); } else { if (resourceOneofCase_ == 7) { generalPropertiesBuilder_.mergeFrom(value); } generalPropertiesBuilder_.setMessage(value); } resourceOneofCase_ = 7; return this; } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ public Builder clearGeneralProperties() { if (generalPropertiesBuilder_ == null) { if (resourceOneofCase_ == 7) { resourceOneofCase_ = 0; resourceOneof_ = null; onChanged(); } } else { if (resourceOneofCase_ == 7) { resourceOneofCase_ = 0; resourceOneof_ = null; } generalPropertiesBuilder_.clear(); } return this; } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder getGeneralPropertiesBuilder() { return getGeneralPropertiesFieldBuilder().getBuilder(); } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.GeneralPropertiesOrBuilder getGeneralPropertiesOrBuilder() { if ((resourceOneofCase_ == 7) && (generalPropertiesBuilder_ != null)) { return generalPropertiesBuilder_.getMessageOrBuilder(); } else { if (resourceOneofCase_ == 7) { return (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_; } return com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance(); } } /** * .com.clickzetta.rm.GeneralProperties general_properties = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralPropertiesOrBuilder> getGeneralPropertiesFieldBuilder() { if (generalPropertiesBuilder_ == null) { if (!(resourceOneofCase_ == 7)) { resourceOneof_ = com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.getDefaultInstance(); } generalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties.Builder, com.clickzetta.rm.proto.VirtualClusterProtos.GeneralPropertiesOrBuilder>( (com.clickzetta.rm.proto.VirtualClusterProtos.GeneralProperties) resourceOneof_, getParentForChildren(), isClean()); resourceOneof_ = null; } resourceOneofCase_ = 7; onChanged();; return generalPropertiesBuilder_; } private int autoStopLatencySec_ ; /** * optional int32 auto_stop_latency_sec = 8; * @return Whether the autoStopLatencySec field is set. */ @java.lang.Override public boolean hasAutoStopLatencySec() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int32 auto_stop_latency_sec = 8; * @return The autoStopLatencySec. */ @java.lang.Override public int getAutoStopLatencySec() { return autoStopLatencySec_; } /** * optional int32 auto_stop_latency_sec = 8; * @param value The autoStopLatencySec to set. * @return This builder for chaining. */ public Builder setAutoStopLatencySec(int value) { bitField0_ |= 0x00000020; autoStopLatencySec_ = value; onChanged(); return this; } /** * optional int32 auto_stop_latency_sec = 8; * @return This builder for chaining. */ public Builder clearAutoStopLatencySec() { bitField0_ = (bitField0_ & ~0x00000020); autoStopLatencySec_ = 0; onChanged(); return this; } private boolean autoStartEnabled_ ; /** * optional bool auto_start_enabled = 9; * @return Whether the autoStartEnabled field is set. */ @java.lang.Override public boolean hasAutoStartEnabled() { return ((bitField0_ & 0x00000040) != 0); } /** * optional bool auto_start_enabled = 9; * @return The autoStartEnabled. */ @java.lang.Override public boolean getAutoStartEnabled() { return autoStartEnabled_; } /** * optional bool auto_start_enabled = 9; * @param value The autoStartEnabled to set. * @return This builder for chaining. */ public Builder setAutoStartEnabled(boolean value) { bitField0_ |= 0x00000040; autoStartEnabled_ = value; onChanged(); return this; } /** * optional bool auto_start_enabled = 9; * @return This builder for chaining. */ public Builder clearAutoStartEnabled() { bitField0_ = (bitField0_ & ~0x00000040); autoStartEnabled_ = false; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> tag_; private com.google.protobuf.MapField internalGetTag() { if (tag_ == null) { return com.google.protobuf.MapField.emptyMapField( TagDefaultEntryHolder.defaultEntry); } return tag_; } private com.google.protobuf.MapField internalGetMutableTag() { onChanged();; if (tag_ == null) { tag_ = com.google.protobuf.MapField.newMapField( TagDefaultEntryHolder.defaultEntry); } if (!tag_.isMutable()) { tag_ = tag_.copy(); } return tag_; } public int getTagCount() { return internalGetTag().getMap().size(); } /** * map<string, string> tag = 10; */ @java.lang.Override public boolean containsTag( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTag().getMap().containsKey(key); } /** * Use {@link #getTagMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTag() { return getTagMap(); } /** * map<string, string> tag = 10; */ @java.lang.Override public java.util.Map getTagMap() { return internalGetTag().getMap(); } /** * map<string, string> tag = 10; */ @java.lang.Override public java.lang.String getTagOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> tag = 10; */ @java.lang.Override public java.lang.String getTagOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTag().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTag() { internalGetMutableTag().getMutableMap() .clear(); return this; } /** * map<string, string> tag = 10; */ public Builder removeTag( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTag().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTag() { return internalGetMutableTag().getMutableMap(); } /** * map<string, string> tag = 10; */ public Builder putTag( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTag().getMutableMap() .put(key, value); return this; } /** * map<string, string> tag = 10; */ public Builder putAllTag( java.util.Map values) { internalGetMutableTag().getMutableMap() .putAll(values); return this; } private java.lang.Object comment_ = ""; /** * optional string comment = 11; * @return Whether the comment field is set. */ public boolean hasComment() { return ((bitField0_ & 0x00000100) != 0); } /** * optional string comment = 11; * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string comment = 11; * @return The bytes for comment. */ public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string comment = 11; * @param value The comment to set. * @return This builder for chaining. */ public Builder setComment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; comment_ = value; onChanged(); return this; } /** * optional string comment = 11; * @return This builder for chaining. */ public Builder clearComment() { bitField0_ = (bitField0_ & ~0x00000100); comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** * optional string comment = 11; * @param value The bytes for comment to set. * @return This builder for chaining. */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000100; comment_ = value; onChanged(); return this; } private int queryProcessTimeLimitSec_ ; /** * optional int32 query_process_time_limit_sec = 13; * @return Whether the queryProcessTimeLimitSec field is set. */ @java.lang.Override public boolean hasQueryProcessTimeLimitSec() { return ((bitField0_ & 0x00000200) != 0); } /** * optional int32 query_process_time_limit_sec = 13; * @return The queryProcessTimeLimitSec. */ @java.lang.Override public int getQueryProcessTimeLimitSec() { return queryProcessTimeLimitSec_; } /** * optional int32 query_process_time_limit_sec = 13; * @param value The queryProcessTimeLimitSec to set. * @return This builder for chaining. */ public Builder setQueryProcessTimeLimitSec(int value) { bitField0_ |= 0x00000200; queryProcessTimeLimitSec_ = value; onChanged(); return this; } /** * optional int32 query_process_time_limit_sec = 13; * @return This builder for chaining. */ public Builder clearQueryProcessTimeLimitSec() { bitField0_ = (bitField0_ & ~0x00000200); queryProcessTimeLimitSec_ = 0; onChanged(); return this; } private long createTimeMs_ ; /** * optional int64 create_time_ms = 14; * @return Whether the createTimeMs field is set. */ @java.lang.Override public boolean hasCreateTimeMs() { return ((bitField0_ & 0x00000400) != 0); } /** * optional int64 create_time_ms = 14; * @return The createTimeMs. */ @java.lang.Override public long getCreateTimeMs() { return createTimeMs_; } /** * optional int64 create_time_ms = 14; * @param value The createTimeMs to set. * @return This builder for chaining. */ public Builder setCreateTimeMs(long value) { bitField0_ |= 0x00000400; createTimeMs_ = value; onChanged(); return this; } /** * optional int64 create_time_ms = 14; * @return This builder for chaining. */ public Builder clearCreateTimeMs() { bitField0_ = (bitField0_ & ~0x00000400); createTimeMs_ = 0L; onChanged(); return this; } private long lastModifyTimeMs_ ; /** * optional int64 last_modify_time_ms = 15; * @return Whether the lastModifyTimeMs field is set. */ @java.lang.Override public boolean hasLastModifyTimeMs() { return ((bitField0_ & 0x00000800) != 0); } /** * optional int64 last_modify_time_ms = 15; * @return The lastModifyTimeMs. */ @java.lang.Override public long getLastModifyTimeMs() { return lastModifyTimeMs_; } /** * optional int64 last_modify_time_ms = 15; * @param value The lastModifyTimeMs to set. * @return This builder for chaining. */ public Builder setLastModifyTimeMs(long value) { bitField0_ |= 0x00000800; lastModifyTimeMs_ = value; onChanged(); return this; } /** * optional int64 last_modify_time_ms = 15; * @return This builder for chaining. */ public Builder clearLastModifyTimeMs() { bitField0_ = (bitField0_ & ~0x00000800); lastModifyTimeMs_ = 0L; onChanged(); return this; } private long creatorUserId_ ; /** * optional int64 creator_user_id = 16; * @return Whether the creatorUserId field is set. */ @java.lang.Override public boolean hasCreatorUserId() { return ((bitField0_ & 0x00001000) != 0); } /** * optional int64 creator_user_id = 16; * @return The creatorUserId. */ @java.lang.Override public long getCreatorUserId() { return creatorUserId_; } /** * optional int64 creator_user_id = 16; * @param value The creatorUserId to set. * @return This builder for chaining. */ public Builder setCreatorUserId(long value) { bitField0_ |= 0x00001000; creatorUserId_ = value; onChanged(); return this; } /** * optional int64 creator_user_id = 16; * @return This builder for chaining. */ public Builder clearCreatorUserId() { bitField0_ = (bitField0_ & ~0x00001000); creatorUserId_ = 0L; onChanged(); return this; } private java.lang.Object version_ = ""; /** * optional string version = 17; * @return Whether the version field is set. */ public boolean hasVersion() { return ((bitField0_ & 0x00002000) != 0); } /** * optional string version = 17; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string version = 17; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string version = 17; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; version_ = value; onChanged(); return this; } /** * optional string version = 17; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00002000); version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * optional string version = 17; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00002000; version_ = value; 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:com.clickzetta.rm.VirtualClusterProperties) } // @@protoc_insertion_point(class_scope:com.clickzetta.rm.VirtualClusterProperties) private static final com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties(); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VirtualClusterProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VirtualClusterProperties(input, extensionRegistry); } }; 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.clickzetta.rm.proto.VirtualClusterProtos.VirtualClusterProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.RequestInfo) com.google.protobuf.MessageOrBuilder { /** * optional string request_id = 1; * @return Whether the requestId field is set. */ boolean hasRequestId(); /** * optional string request_id = 1; * @return The requestId. */ java.lang.String getRequestId(); /** * optional string request_id = 1; * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); /** * optional bytes operator_token = 2; * @return Whether the operatorToken field is set. */ boolean hasOperatorToken(); /** * optional bytes operator_token = 2; * @return The operatorToken. */ com.google.protobuf.ByteString getOperatorToken(); } /** * Protobuf type {@code com.clickzetta.rm.RequestInfo} */ public static final class RequestInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.clickzetta.rm.RequestInfo) RequestInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RequestInfo.newBuilder() to construct. private RequestInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestInfo() { requestId_ = ""; operatorToken_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RequestInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; requestId_ = s; break; } case 18: { bitField0_ |= 0x00000002; operatorToken_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_RequestInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_RequestInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo.class, com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo.Builder.class); } private int bitField0_; public static final int REQUEST_ID_FIELD_NUMBER = 1; private volatile java.lang.Object requestId_; /** * optional string request_id = 1; * @return Whether the requestId field is set. */ @java.lang.Override public boolean hasRequestId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string request_id = 1; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; } } /** * optional string request_id = 1; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATOR_TOKEN_FIELD_NUMBER = 2; private com.google.protobuf.ByteString operatorToken_; /** * optional bytes operator_token = 2; * @return Whether the operatorToken field is set. */ @java.lang.Override public boolean hasOperatorToken() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes operator_token = 2; * @return The operatorToken. */ @java.lang.Override public com.google.protobuf.ByteString getOperatorToken() { return operatorToken_; } 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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, operatorToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, operatorToken_); } size += unknownFields.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.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo)) { return super.equals(obj); } com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo other = (com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo) obj; if (hasRequestId() != other.hasRequestId()) return false; if (hasRequestId()) { if (!getRequestId() .equals(other.getRequestId())) return false; } if (hasOperatorToken() != other.hasOperatorToken()) return false; if (hasOperatorToken()) { if (!getOperatorToken() .equals(other.getOperatorToken())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequestId()) { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); } if (hasOperatorToken()) { hash = (37 * hash) + OPERATOR_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getOperatorToken().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo 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.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo 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.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo 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.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo 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; } /** * Protobuf type {@code com.clickzetta.rm.RequestInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.RequestInfo) com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_RequestInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_RequestInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo.class, com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo.Builder.class); } // Construct using com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); requestId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); operatorToken_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_RequestInfo_descriptor; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo getDefaultInstanceForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo.getDefaultInstance(); } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo build() { com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo buildPartial() { com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo result = new com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.requestId_ = requestId_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.operatorToken_ = operatorToken_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo) { return mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo other) { if (other == com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo.getDefaultInstance()) return this; if (other.hasRequestId()) { bitField0_ |= 0x00000001; requestId_ = other.requestId_; onChanged(); } if (other.hasOperatorToken()) { setOperatorToken(other.getOperatorToken()); } this.mergeUnknownFields(other.unknownFields); 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 { com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object requestId_ = ""; /** * optional string request_id = 1; * @return Whether the requestId field is set. */ public boolean hasRequestId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string request_id = 1; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string request_id = 1; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string request_id = 1; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; requestId_ = value; onChanged(); return this; } /** * optional string request_id = 1; * @return This builder for chaining. */ public Builder clearRequestId() { bitField0_ = (bitField0_ & ~0x00000001); requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** * optional string request_id = 1; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; requestId_ = value; onChanged(); return this; } private com.google.protobuf.ByteString operatorToken_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes operator_token = 2; * @return Whether the operatorToken field is set. */ @java.lang.Override public boolean hasOperatorToken() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes operator_token = 2; * @return The operatorToken. */ @java.lang.Override public com.google.protobuf.ByteString getOperatorToken() { return operatorToken_; } /** * optional bytes operator_token = 2; * @param value The operatorToken to set. * @return This builder for chaining. */ public Builder setOperatorToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operatorToken_ = value; onChanged(); return this; } /** * optional bytes operator_token = 2; * @return This builder for chaining. */ public Builder clearOperatorToken() { bitField0_ = (bitField0_ & ~0x00000002); operatorToken_ = getDefaultInstance().getOperatorToken(); 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:com.clickzetta.rm.RequestInfo) } // @@protoc_insertion_point(class_scope:com.clickzetta.rm.RequestInfo) private static final com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo(); } public static com.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RequestInfo(input, extensionRegistry); } }; 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.clickzetta.rm.proto.VirtualClusterProtos.RequestInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.ResponseInfo) com.google.protobuf.MessageOrBuilder { /** * optional string request_id = 1; * @return Whether the requestId field is set. */ boolean hasRequestId(); /** * optional string request_id = 1; * @return The requestId. */ java.lang.String getRequestId(); /** * optional string request_id = 1; * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); /** * optional .com.clickzetta.rm.Status status = 2; * @return Whether the status field is set. */ boolean hasStatus(); /** * optional .com.clickzetta.rm.Status status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * optional .com.clickzetta.rm.Status status = 2; * @return The status. */ com.clickzetta.rm.proto.VirtualClusterProtos.Status getStatus(); /** * optional string error_code = 3; * @return Whether the errorCode field is set. */ boolean hasErrorCode(); /** * optional string error_code = 3; * @return The errorCode. */ java.lang.String getErrorCode(); /** * optional string error_code = 3; * @return The bytes for errorCode. */ com.google.protobuf.ByteString getErrorCodeBytes(); /** * optional string error_msg = 4; * @return Whether the errorMsg field is set. */ boolean hasErrorMsg(); /** * optional string error_msg = 4; * @return The errorMsg. */ java.lang.String getErrorMsg(); /** * optional string error_msg = 4; * @return The bytes for errorMsg. */ com.google.protobuf.ByteString getErrorMsgBytes(); } /** * Protobuf type {@code com.clickzetta.rm.ResponseInfo} */ public static final class ResponseInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.clickzetta.rm.ResponseInfo) ResponseInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseInfo.newBuilder() to construct. private ResponseInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseInfo() { requestId_ = ""; status_ = 0; errorCode_ = ""; errorMsg_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResponseInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; requestId_ = s; break; } case 16: { int rawValue = input.readEnum(); bitField0_ |= 0x00000002; status_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; errorCode_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; errorMsg_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_ResponseInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_ResponseInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo.class, com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo.Builder.class); } private int bitField0_; public static final int REQUEST_ID_FIELD_NUMBER = 1; private volatile java.lang.Object requestId_; /** * optional string request_id = 1; * @return Whether the requestId field is set. */ @java.lang.Override public boolean hasRequestId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string request_id = 1; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; } } /** * optional string request_id = 1; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * optional .com.clickzetta.rm.Status status = 2; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .com.clickzetta.rm.Status status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * optional .com.clickzetta.rm.Status status = 2; * @return The status. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.Status getStatus() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.Status result = com.clickzetta.rm.proto.VirtualClusterProtos.Status.valueOf(status_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.Status.UNRECOGNIZED : result; } public static final int ERROR_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object errorCode_; /** * optional string error_code = 3; * @return Whether the errorCode field is set. */ @java.lang.Override public boolean hasErrorCode() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string error_code = 3; * @return The errorCode. */ @java.lang.Override public java.lang.String getErrorCode() { java.lang.Object ref = errorCode_; 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(); errorCode_ = s; return s; } } /** * optional string error_code = 3; * @return The bytes for errorCode. */ @java.lang.Override public com.google.protobuf.ByteString getErrorCodeBytes() { java.lang.Object ref = errorCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_MSG_FIELD_NUMBER = 4; private volatile java.lang.Object errorMsg_; /** * optional string error_msg = 4; * @return Whether the errorMsg field is set. */ @java.lang.Override public boolean hasErrorMsg() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string error_msg = 4; * @return The errorMsg. */ @java.lang.Override public java.lang.String getErrorMsg() { java.lang.Object ref = errorMsg_; 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(); errorMsg_ = s; return s; } } /** * optional string error_msg = 4; * @return The bytes for errorMsg. */ @java.lang.Override public com.google.protobuf.ByteString getErrorMsgBytes() { java.lang.Object ref = errorMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, status_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorCode_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, errorMsg_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorCode_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errorMsg_); } size += unknownFields.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.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo)) { return super.equals(obj); } com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo other = (com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo) obj; if (hasRequestId() != other.hasRequestId()) return false; if (hasRequestId()) { if (!getRequestId() .equals(other.getRequestId())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (status_ != other.status_) return false; } if (hasErrorCode() != other.hasErrorCode()) return false; if (hasErrorCode()) { if (!getErrorCode() .equals(other.getErrorCode())) return false; } if (hasErrorMsg() != other.hasErrorMsg()) return false; if (hasErrorMsg()) { if (!getErrorMsg() .equals(other.getErrorMsg())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequestId()) { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; } if (hasErrorCode()) { hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; hash = (53 * hash) + getErrorCode().hashCode(); } if (hasErrorMsg()) { hash = (37 * hash) + ERROR_MSG_FIELD_NUMBER; hash = (53 * hash) + getErrorMsg().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo 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.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo 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.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo 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.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo 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; } /** * Protobuf type {@code com.clickzetta.rm.ResponseInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.ResponseInfo) com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_ResponseInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_ResponseInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo.class, com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo.Builder.class); } // Construct using com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); requestId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; bitField0_ = (bitField0_ & ~0x00000002); errorCode_ = ""; bitField0_ = (bitField0_ & ~0x00000004); errorMsg_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_ResponseInfo_descriptor; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo getDefaultInstanceForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo.getDefaultInstance(); } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo build() { com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo buildPartial() { com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo result = new com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.requestId_ = requestId_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.errorCode_ = errorCode_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.errorMsg_ = errorMsg_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo) { return mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo other) { if (other == com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo.getDefaultInstance()) return this; if (other.hasRequestId()) { bitField0_ |= 0x00000001; requestId_ = other.requestId_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasErrorCode()) { bitField0_ |= 0x00000004; errorCode_ = other.errorCode_; onChanged(); } if (other.hasErrorMsg()) { bitField0_ |= 0x00000008; errorMsg_ = other.errorMsg_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object requestId_ = ""; /** * optional string request_id = 1; * @return Whether the requestId field is set. */ public boolean hasRequestId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string request_id = 1; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string request_id = 1; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string request_id = 1; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; requestId_ = value; onChanged(); return this; } /** * optional string request_id = 1; * @return This builder for chaining. */ public Builder clearRequestId() { bitField0_ = (bitField0_ & ~0x00000001); requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** * optional string request_id = 1; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; requestId_ = value; onChanged(); return this; } private int status_ = 0; /** * optional .com.clickzetta.rm.Status status = 2; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .com.clickzetta.rm.Status status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * optional .com.clickzetta.rm.Status status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * optional .com.clickzetta.rm.Status status = 2; * @return The status. */ @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.Status getStatus() { @SuppressWarnings("deprecation") com.clickzetta.rm.proto.VirtualClusterProtos.Status result = com.clickzetta.rm.proto.VirtualClusterProtos.Status.valueOf(status_); return result == null ? com.clickzetta.rm.proto.VirtualClusterProtos.Status.UNRECOGNIZED : result; } /** * optional .com.clickzetta.rm.Status status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.clickzetta.rm.proto.VirtualClusterProtos.Status value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value.getNumber(); onChanged(); return this; } /** * optional .com.clickzetta.rm.Status status = 2; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; onChanged(); return this; } private java.lang.Object errorCode_ = ""; /** * optional string error_code = 3; * @return Whether the errorCode field is set. */ public boolean hasErrorCode() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string error_code = 3; * @return The errorCode. */ public java.lang.String getErrorCode() { java.lang.Object ref = errorCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string error_code = 3; * @return The bytes for errorCode. */ public com.google.protobuf.ByteString getErrorCodeBytes() { java.lang.Object ref = errorCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_code = 3; * @param value The errorCode to set. * @return This builder for chaining. */ public Builder setErrorCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; errorCode_ = value; onChanged(); return this; } /** * optional string error_code = 3; * @return This builder for chaining. */ public Builder clearErrorCode() { bitField0_ = (bitField0_ & ~0x00000004); errorCode_ = getDefaultInstance().getErrorCode(); onChanged(); return this; } /** * optional string error_code = 3; * @param value The bytes for errorCode to set. * @return This builder for chaining. */ public Builder setErrorCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000004; errorCode_ = value; onChanged(); return this; } private java.lang.Object errorMsg_ = ""; /** * optional string error_msg = 4; * @return Whether the errorMsg field is set. */ public boolean hasErrorMsg() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string error_msg = 4; * @return The errorMsg. */ public java.lang.String getErrorMsg() { java.lang.Object ref = errorMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMsg_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string error_msg = 4; * @return The bytes for errorMsg. */ public com.google.protobuf.ByteString getErrorMsgBytes() { java.lang.Object ref = errorMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_msg = 4; * @param value The errorMsg to set. * @return This builder for chaining. */ public Builder setErrorMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; errorMsg_ = value; onChanged(); return this; } /** * optional string error_msg = 4; * @return This builder for chaining. */ public Builder clearErrorMsg() { bitField0_ = (bitField0_ & ~0x00000008); errorMsg_ = getDefaultInstance().getErrorMsg(); onChanged(); return this; } /** * optional string error_msg = 4; * @param value The bytes for errorMsg to set. * @return This builder for chaining. */ public Builder setErrorMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000008; errorMsg_ = value; 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:com.clickzetta.rm.ResponseInfo) } // @@protoc_insertion_point(class_scope:com.clickzetta.rm.ResponseInfo) private static final com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo(); } public static com.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResponseInfo(input, extensionRegistry); } }; 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.clickzetta.rm.proto.VirtualClusterProtos.ResponseInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VClusterIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:com.clickzetta.rm.VClusterIdentifier) com.google.protobuf.MessageOrBuilder { /** * optional int64 instance_id = 1; * @return Whether the instanceId field is set. */ boolean hasInstanceId(); /** * optional int64 instance_id = 1; * @return The instanceId. */ long getInstanceId(); /** * optional int64 workspace_id = 2; * @return Whether the workspaceId field is set. */ boolean hasWorkspaceId(); /** * optional int64 workspace_id = 2; * @return The workspaceId. */ long getWorkspaceId(); /** * optional string name = 3; * @return Whether the name field is set. */ boolean hasName(); /** * optional string name = 3; * @return The name. */ java.lang.String getName(); /** * optional string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code com.clickzetta.rm.VClusterIdentifier} */ public static final class VClusterIdentifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.clickzetta.rm.VClusterIdentifier) VClusterIdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use VClusterIdentifier.newBuilder() to construct. private VClusterIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VClusterIdentifier() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VClusterIdentifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VClusterIdentifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bitField0_ |= 0x00000001; instanceId_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; workspaceId_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; name_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VClusterIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VClusterIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier.class, com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier.Builder.class); } private int bitField0_; public static final int INSTANCE_ID_FIELD_NUMBER = 1; private long instanceId_; /** * optional int64 instance_id = 1; * @return Whether the instanceId field is set. */ @java.lang.Override public boolean hasInstanceId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 instance_id = 1; * @return The instanceId. */ @java.lang.Override public long getInstanceId() { return instanceId_; } public static final int WORKSPACE_ID_FIELD_NUMBER = 2; private long workspaceId_; /** * optional int64 workspace_id = 2; * @return Whether the workspaceId field is set. */ @java.lang.Override public boolean hasWorkspaceId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 workspace_id = 2; * @return The workspaceId. */ @java.lang.Override public long getWorkspaceId() { return workspaceId_; } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** * optional string name = 3; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * optional string name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, instanceId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, workspaceId_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, instanceId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, workspaceId_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } size += unknownFields.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.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier)) { return super.equals(obj); } com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier other = (com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier) obj; if (hasInstanceId() != other.hasInstanceId()) return false; if (hasInstanceId()) { if (getInstanceId() != other.getInstanceId()) return false; } if (hasWorkspaceId() != other.hasWorkspaceId()) return false; if (hasWorkspaceId()) { if (getWorkspaceId() != other.getWorkspaceId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInstanceId()) { hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInstanceId()); } if (hasWorkspaceId()) { hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkspaceId()); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier 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.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier 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.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier 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.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier 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; } /** * Protobuf type {@code com.clickzetta.rm.VClusterIdentifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.VClusterIdentifier) com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VClusterIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VClusterIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier.class, com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier.Builder.class); } // Construct using com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); instanceId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); workspaceId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.internal_static_com_clickzetta_rm_VClusterIdentifier_descriptor; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier getDefaultInstanceForType() { return com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier.getDefaultInstance(); } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier build() { com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier buildPartial() { com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier result = new com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceId_ = instanceId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.workspaceId_ = workspaceId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier) { return mergeFrom((com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier other) { if (other == com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier.getDefaultInstance()) return this; if (other.hasInstanceId()) { setInstanceId(other.getInstanceId()); } if (other.hasWorkspaceId()) { setWorkspaceId(other.getWorkspaceId()); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long instanceId_ ; /** * optional int64 instance_id = 1; * @return Whether the instanceId field is set. */ @java.lang.Override public boolean hasInstanceId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 instance_id = 1; * @return The instanceId. */ @java.lang.Override public long getInstanceId() { return instanceId_; } /** * optional int64 instance_id = 1; * @param value The instanceId to set. * @return This builder for chaining. */ public Builder setInstanceId(long value) { bitField0_ |= 0x00000001; instanceId_ = value; onChanged(); return this; } /** * optional int64 instance_id = 1; * @return This builder for chaining. */ public Builder clearInstanceId() { bitField0_ = (bitField0_ & ~0x00000001); instanceId_ = 0L; onChanged(); return this; } private long workspaceId_ ; /** * optional int64 workspace_id = 2; * @return Whether the workspaceId field is set. */ @java.lang.Override public boolean hasWorkspaceId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 workspace_id = 2; * @return The workspaceId. */ @java.lang.Override public long getWorkspaceId() { return workspaceId_; } /** * optional int64 workspace_id = 2; * @param value The workspaceId to set. * @return This builder for chaining. */ public Builder setWorkspaceId(long value) { bitField0_ |= 0x00000002; workspaceId_ = value; onChanged(); return this; } /** * optional int64 workspace_id = 2; * @return This builder for chaining. */ public Builder clearWorkspaceId() { bitField0_ = (bitField0_ & ~0x00000002); workspaceId_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 3; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } /** * optional string name = 3; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000004; name_ = value; 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:com.clickzetta.rm.VClusterIdentifier) } // @@protoc_insertion_point(class_scope:com.clickzetta.rm.VClusterIdentifier) private static final com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier(); } public static com.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VClusterIdentifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VClusterIdentifier(input, extensionRegistry); } }; 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.clickzetta.rm.proto.VirtualClusterProtos.VClusterIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_AnalyticsProperties_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_AnalyticsProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_GeneralProperties_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_GeneralProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_VCResource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_VCResource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_VirtualClusterProperties_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_VirtualClusterProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_VirtualClusterProperties_TagEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_VirtualClusterProperties_TagEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_RequestInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_RequestInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_ResponseInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_ResponseInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_clickzetta_rm_VClusterIdentifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_clickzetta_rm_VClusterIdentifier_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\025virtual_cluster.proto\022\021com.clickzetta." + "rm\"\263\002\n\023AnalyticsProperties\022\031\n\014min_replic" + "as\030\001 \001(\005H\000\210\001\001\022\031\n\014max_replicas\030\002 \001(\005H\001\210\001\001" + "\022(\n\033max_concurrency_per_replica\030\003 \001(\005H\002\210" + "\001\001\0229\n\014scale_policy\030\004 \001(\0162\036.com.clickzett" + "a.rm.ScalePolicyH\003\210\001\001\022\033\n\016preload_tables\030" + "\005 \001(\tH\004\210\001\001B\017\n\r_min_replicasB\017\n\r_max_repl" + "icasB\036\n\034_max_concurrency_per_replicaB\017\n\r" + "_scale_policyB\021\n\017_preload_tables\"h\n\021Gene" + "ralProperties\022>\n\020cluster_max_size\030\001 \001(\0162" + "\037.com.clickzetta.rm.VClusterSizeH\000\210\001\001B\023\n" + "\021_cluster_max_size\"Z\n\nVCResource\022\023\n\006memo" + "ry\030\001 \001(\003H\000\210\001\001\022\032\n\rvirtual_cores\030\002 \001(\005H\001\210\001" + "\001B\t\n\007_memoryB\020\n\016_virtual_cores\"\325\007\n\030Virtu" + "alClusterProperties\022\021\n\004name\030\001 \001(\tH\001\210\001\001\022\030" + "\n\013instance_id\030\002 \001(\003H\002\210\001\001\022\031\n\014workspace_id" + "\030\003 \001(\003H\003\210\001\001\022:\n\014cluster_type\030\004 \001(\0162\037.com." + "clickzetta.rm.VClusterTypeH\004\210\001\001\022:\n\014clust" + "er_size\030\005 \001(\0162\037.com.clickzetta.rm.VClust" + "erSizeH\005\210\001\001\022F\n\024analytics_properties\030\006 \001(" + "\0132&.com.clickzetta.rm.AnalyticsPropertie" + "sH\000\022B\n\022general_properties\030\007 \001(\0132$.com.cl" + "ickzetta.rm.GeneralPropertiesH\000\022\"\n\025auto_" + "stop_latency_sec\030\010 \001(\005H\006\210\001\001\022\037\n\022auto_star" + "t_enabled\030\t \001(\010H\007\210\001\001\022A\n\003tag\030\n \003(\01324.com." + "clickzetta.rm.VirtualClusterProperties.T" + "agEntry\022\024\n\007comment\030\013 \001(\tH\010\210\001\001\022)\n\034query_p" + "rocess_time_limit_sec\030\r \001(\005H\t\210\001\001\022\033\n\016crea" + "te_time_ms\030\016 \001(\003H\n\210\001\001\022 \n\023last_modify_tim" + "e_ms\030\017 \001(\003H\013\210\001\001\022\034\n\017creator_user_id\030\020 \001(\003" + "H\014\210\001\001\022\024\n\007version\030\021 \001(\tH\r\210\001\001\032*\n\010TagEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\020\n\016resou" + "rce_oneofB\007\n\005_nameB\016\n\014_instance_idB\017\n\r_w" + "orkspace_idB\017\n\r_cluster_typeB\017\n\r_cluster" + "_sizeB\030\n\026_auto_stop_latency_secB\025\n\023_auto" + "_start_enabledB\n\n\010_commentB\037\n\035_query_pro" + "cess_time_limit_secB\021\n\017_create_time_msB\026" + "\n\024_last_modify_time_msB\022\n\020_creator_user_" + "idB\n\n\010_version\"e\n\013RequestInfo\022\027\n\nrequest" + "_id\030\001 \001(\tH\000\210\001\001\022\033\n\016operator_token\030\002 \001(\014H\001" + "\210\001\001B\r\n\013_request_idB\021\n\017_operator_token\"\277\001" + "\n\014ResponseInfo\022\027\n\nrequest_id\030\001 \001(\tH\000\210\001\001\022" + ".\n\006status\030\002 \001(\0162\031.com.clickzetta.rm.Stat" + "usH\001\210\001\001\022\027\n\nerror_code\030\003 \001(\tH\002\210\001\001\022\026\n\terro" + "r_msg\030\004 \001(\tH\003\210\001\001B\r\n\013_request_idB\t\n\007_stat" + "usB\r\n\013_error_codeB\014\n\n_error_msg\"\206\001\n\022VClu" + "sterIdentifier\022\030\n\013instance_id\030\001 \001(\003H\000\210\001\001" + "\022\031\n\014workspace_id\030\002 \001(\003H\001\210\001\001\022\021\n\004name\030\003 \001(" + "\tH\002\210\001\001B\016\n\014_instance_idB\017\n\r_workspace_idB" + "\007\n\005_name*\320\001\n\014VClusterSize\022\n\n\006XSMALL\020\000\022\t\n" + "\005SMALL\020\001\022\n\n\006MEDIUM\020\002\022\t\n\005LARGE\020\003\022\n\n\006XLARG" + "E\020\004\022\013\n\007X2LARGE\020\005\022\013\n\007X3LARGE\020\006\022\013\n\007X4LARGE" + "\020\007\022\013\n\007X5LARGE\020\010\022\013\n\007X6LARGE\020\t\022\017\n\013CUSTOMIZ" + "ED3\020e\022\020\n\014CUSTOMIZED52\020f\022\020\n\014CUSTOMIZED48\020" + "g\022\020\n\014CUSTOMIZED12\020h**\n\014VClusterType\022\013\n\007G" + "ENERAL\020\000\022\r\n\tANALYTICS\020\001*\033\n\013ScalePolicy\022\014" + "\n\010STANDARD\020\000*\304\001\n\023VirtualClusterState\022\r\n\t" + "SUSPENDED\020\000\022\013\n\007RUNNING\020\001\022\014\n\010STARTING\020\002\022\016" + "\n\nSCALING_UP\020\003\022\020\n\014SCALING_DOWN\020\004\022\016\n\nSUSP" + "ENDING\020\005\022\014\n\010DROPPING\020\006\022\t\n\005ERROR\020\007\022\013\n\007DEL" + "ETED\020\010\022\014\n\010RESUMING\020\t\022\016\n\nCANCELLING\020\n\022\r\n\t" + "UPGRADING\020\013*#\n\006Status\022\r\n\tSUCCEEDED\020\000\022\n\n\006" + "FAILED\020\001B/\n\027com.clickzetta.rm.protoB\024Vir" + "tualClusterProtosb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_com_clickzetta_rm_AnalyticsProperties_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_clickzetta_rm_AnalyticsProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_AnalyticsProperties_descriptor, new java.lang.String[] { "MinReplicas", "MaxReplicas", "MaxConcurrencyPerReplica", "ScalePolicy", "PreloadTables", "MinReplicas", "MaxReplicas", "MaxConcurrencyPerReplica", "ScalePolicy", "PreloadTables", }); internal_static_com_clickzetta_rm_GeneralProperties_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_clickzetta_rm_GeneralProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_GeneralProperties_descriptor, new java.lang.String[] { "ClusterMaxSize", "ClusterMaxSize", }); internal_static_com_clickzetta_rm_VCResource_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_clickzetta_rm_VCResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_VCResource_descriptor, new java.lang.String[] { "Memory", "VirtualCores", "Memory", "VirtualCores", }); internal_static_com_clickzetta_rm_VirtualClusterProperties_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_clickzetta_rm_VirtualClusterProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_VirtualClusterProperties_descriptor, new java.lang.String[] { "Name", "InstanceId", "WorkspaceId", "ClusterType", "ClusterSize", "AnalyticsProperties", "GeneralProperties", "AutoStopLatencySec", "AutoStartEnabled", "Tag", "Comment", "QueryProcessTimeLimitSec", "CreateTimeMs", "LastModifyTimeMs", "CreatorUserId", "Version", "ResourceOneof", "Name", "InstanceId", "WorkspaceId", "ClusterType", "ClusterSize", "AutoStopLatencySec", "AutoStartEnabled", "Comment", "QueryProcessTimeLimitSec", "CreateTimeMs", "LastModifyTimeMs", "CreatorUserId", "Version", }); internal_static_com_clickzetta_rm_VirtualClusterProperties_TagEntry_descriptor = internal_static_com_clickzetta_rm_VirtualClusterProperties_descriptor.getNestedTypes().get(0); internal_static_com_clickzetta_rm_VirtualClusterProperties_TagEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_VirtualClusterProperties_TagEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_com_clickzetta_rm_RequestInfo_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_clickzetta_rm_RequestInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_RequestInfo_descriptor, new java.lang.String[] { "RequestId", "OperatorToken", "RequestId", "OperatorToken", }); internal_static_com_clickzetta_rm_ResponseInfo_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_clickzetta_rm_ResponseInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_ResponseInfo_descriptor, new java.lang.String[] { "RequestId", "Status", "ErrorCode", "ErrorMsg", "RequestId", "Status", "ErrorCode", "ErrorMsg", }); internal_static_com_clickzetta_rm_VClusterIdentifier_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_clickzetta_rm_VClusterIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_clickzetta_rm_VClusterIdentifier_descriptor, new java.lang.String[] { "InstanceId", "WorkspaceId", "Name", "InstanceId", "WorkspaceId", "Name", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy