cz.proto.access.AccessToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: privilege.proto
package cz.proto.access;
/**
* Protobuf type {@code cz.proto.access.AccessToken}
*/
public final class AccessToken extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.access.AccessToken)
AccessTokenOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccessToken.newBuilder() to construct.
private AccessToken(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccessToken() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccessToken();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccessToken(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
expireTime_ = input.readInt64();
break;
}
case 16: {
userId_ = input.readInt64();
break;
}
case 82: {
cz.proto.AccountOuterClass.Policy.Builder subBuilder = null;
if (accessPolicy_ != null) {
subBuilder = accessPolicy_.toBuilder();
}
accessPolicy_ = input.readMessage(cz.proto.AccountOuterClass.Policy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accessPolicy_);
accessPolicy_ = subBuilder.buildPartial();
}
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 cz.proto.access.PrivilegeOuterClass.internal_static_cz_proto_access_AccessToken_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.access.PrivilegeOuterClass.internal_static_cz_proto_access_AccessToken_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.access.AccessToken.class, cz.proto.access.AccessToken.Builder.class);
}
public static final int EXPIRE_TIME_FIELD_NUMBER = 1;
private long expireTime_;
/**
* int64 expire_time = 1;
* @return The expireTime.
*/
@java.lang.Override
public long getExpireTime() {
return expireTime_;
}
public static final int USER_ID_FIELD_NUMBER = 2;
private long userId_;
/**
* int64 user_id = 2;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
public static final int ACCESS_POLICY_FIELD_NUMBER = 10;
private cz.proto.AccountOuterClass.Policy accessPolicy_;
/**
* .cz.proto.Policy access_policy = 10;
* @return Whether the accessPolicy field is set.
*/
@java.lang.Override
public boolean hasAccessPolicy() {
return accessPolicy_ != null;
}
/**
* .cz.proto.Policy access_policy = 10;
* @return The accessPolicy.
*/
@java.lang.Override
public cz.proto.AccountOuterClass.Policy getAccessPolicy() {
return accessPolicy_ == null ? cz.proto.AccountOuterClass.Policy.getDefaultInstance() : accessPolicy_;
}
/**
* .cz.proto.Policy access_policy = 10;
*/
@java.lang.Override
public cz.proto.AccountOuterClass.PolicyOrBuilder getAccessPolicyOrBuilder() {
return getAccessPolicy();
}
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 (expireTime_ != 0L) {
output.writeInt64(1, expireTime_);
}
if (userId_ != 0L) {
output.writeInt64(2, userId_);
}
if (accessPolicy_ != null) {
output.writeMessage(10, getAccessPolicy());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (expireTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, expireTime_);
}
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, userId_);
}
if (accessPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAccessPolicy());
}
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 cz.proto.access.AccessToken)) {
return super.equals(obj);
}
cz.proto.access.AccessToken other = (cz.proto.access.AccessToken) obj;
if (getExpireTime()
!= other.getExpireTime()) return false;
if (getUserId()
!= other.getUserId()) return false;
if (hasAccessPolicy() != other.hasAccessPolicy()) return false;
if (hasAccessPolicy()) {
if (!getAccessPolicy()
.equals(other.getAccessPolicy())) 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();
hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExpireTime());
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUserId());
if (hasAccessPolicy()) {
hash = (37 * hash) + ACCESS_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getAccessPolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.access.AccessToken parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.access.AccessToken parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.access.AccessToken parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.access.AccessToken parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.access.AccessToken parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.access.AccessToken parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.access.AccessToken parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.access.AccessToken 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 cz.proto.access.AccessToken parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.access.AccessToken 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 cz.proto.access.AccessToken parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.access.AccessToken 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(cz.proto.access.AccessToken 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 cz.proto.access.AccessToken}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.access.AccessToken)
cz.proto.access.AccessTokenOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.access.PrivilegeOuterClass.internal_static_cz_proto_access_AccessToken_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.access.PrivilegeOuterClass.internal_static_cz_proto_access_AccessToken_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.access.AccessToken.class, cz.proto.access.AccessToken.Builder.class);
}
// Construct using cz.proto.access.AccessToken.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();
expireTime_ = 0L;
userId_ = 0L;
if (accessPolicyBuilder_ == null) {
accessPolicy_ = null;
} else {
accessPolicy_ = null;
accessPolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.access.PrivilegeOuterClass.internal_static_cz_proto_access_AccessToken_descriptor;
}
@java.lang.Override
public cz.proto.access.AccessToken getDefaultInstanceForType() {
return cz.proto.access.AccessToken.getDefaultInstance();
}
@java.lang.Override
public cz.proto.access.AccessToken build() {
cz.proto.access.AccessToken result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.access.AccessToken buildPartial() {
cz.proto.access.AccessToken result = new cz.proto.access.AccessToken(this);
result.expireTime_ = expireTime_;
result.userId_ = userId_;
if (accessPolicyBuilder_ == null) {
result.accessPolicy_ = accessPolicy_;
} else {
result.accessPolicy_ = accessPolicyBuilder_.build();
}
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 cz.proto.access.AccessToken) {
return mergeFrom((cz.proto.access.AccessToken)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.access.AccessToken other) {
if (other == cz.proto.access.AccessToken.getDefaultInstance()) return this;
if (other.getExpireTime() != 0L) {
setExpireTime(other.getExpireTime());
}
if (other.getUserId() != 0L) {
setUserId(other.getUserId());
}
if (other.hasAccessPolicy()) {
mergeAccessPolicy(other.getAccessPolicy());
}
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 {
cz.proto.access.AccessToken parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.access.AccessToken) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long expireTime_ ;
/**
* int64 expire_time = 1;
* @return The expireTime.
*/
@java.lang.Override
public long getExpireTime() {
return expireTime_;
}
/**
* int64 expire_time = 1;
* @param value The expireTime to set.
* @return This builder for chaining.
*/
public Builder setExpireTime(long value) {
expireTime_ = value;
onChanged();
return this;
}
/**
* int64 expire_time = 1;
* @return This builder for chaining.
*/
public Builder clearExpireTime() {
expireTime_ = 0L;
onChanged();
return this;
}
private long userId_ ;
/**
* int64 user_id = 2;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
/**
* int64 user_id = 2;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(long value) {
userId_ = value;
onChanged();
return this;
}
/**
* int64 user_id = 2;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = 0L;
onChanged();
return this;
}
private cz.proto.AccountOuterClass.Policy accessPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AccountOuterClass.Policy, cz.proto.AccountOuterClass.Policy.Builder, cz.proto.AccountOuterClass.PolicyOrBuilder> accessPolicyBuilder_;
/**
* .cz.proto.Policy access_policy = 10;
* @return Whether the accessPolicy field is set.
*/
public boolean hasAccessPolicy() {
return accessPolicyBuilder_ != null || accessPolicy_ != null;
}
/**
* .cz.proto.Policy access_policy = 10;
* @return The accessPolicy.
*/
public cz.proto.AccountOuterClass.Policy getAccessPolicy() {
if (accessPolicyBuilder_ == null) {
return accessPolicy_ == null ? cz.proto.AccountOuterClass.Policy.getDefaultInstance() : accessPolicy_;
} else {
return accessPolicyBuilder_.getMessage();
}
}
/**
* .cz.proto.Policy access_policy = 10;
*/
public Builder setAccessPolicy(cz.proto.AccountOuterClass.Policy value) {
if (accessPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accessPolicy_ = value;
onChanged();
} else {
accessPolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.Policy access_policy = 10;
*/
public Builder setAccessPolicy(
cz.proto.AccountOuterClass.Policy.Builder builderForValue) {
if (accessPolicyBuilder_ == null) {
accessPolicy_ = builderForValue.build();
onChanged();
} else {
accessPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.Policy access_policy = 10;
*/
public Builder mergeAccessPolicy(cz.proto.AccountOuterClass.Policy value) {
if (accessPolicyBuilder_ == null) {
if (accessPolicy_ != null) {
accessPolicy_ =
cz.proto.AccountOuterClass.Policy.newBuilder(accessPolicy_).mergeFrom(value).buildPartial();
} else {
accessPolicy_ = value;
}
onChanged();
} else {
accessPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.Policy access_policy = 10;
*/
public Builder clearAccessPolicy() {
if (accessPolicyBuilder_ == null) {
accessPolicy_ = null;
onChanged();
} else {
accessPolicy_ = null;
accessPolicyBuilder_ = null;
}
return this;
}
/**
* .cz.proto.Policy access_policy = 10;
*/
public cz.proto.AccountOuterClass.Policy.Builder getAccessPolicyBuilder() {
onChanged();
return getAccessPolicyFieldBuilder().getBuilder();
}
/**
* .cz.proto.Policy access_policy = 10;
*/
public cz.proto.AccountOuterClass.PolicyOrBuilder getAccessPolicyOrBuilder() {
if (accessPolicyBuilder_ != null) {
return accessPolicyBuilder_.getMessageOrBuilder();
} else {
return accessPolicy_ == null ?
cz.proto.AccountOuterClass.Policy.getDefaultInstance() : accessPolicy_;
}
}
/**
* .cz.proto.Policy access_policy = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AccountOuterClass.Policy, cz.proto.AccountOuterClass.Policy.Builder, cz.proto.AccountOuterClass.PolicyOrBuilder>
getAccessPolicyFieldBuilder() {
if (accessPolicyBuilder_ == null) {
accessPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AccountOuterClass.Policy, cz.proto.AccountOuterClass.Policy.Builder, cz.proto.AccountOuterClass.PolicyOrBuilder>(
getAccessPolicy(),
getParentForChildren(),
isClean());
accessPolicy_ = null;
}
return accessPolicyBuilder_;
}
@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:cz.proto.access.AccessToken)
}
// @@protoc_insertion_point(class_scope:cz.proto.access.AccessToken)
private static final cz.proto.access.AccessToken DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.access.AccessToken();
}
public static cz.proto.access.AccessToken getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccessToken parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccessToken(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 cz.proto.access.AccessToken getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy