cz.proto.AccountOuterClass 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: account.proto
package cz.proto;
public final class AccountOuterClass {
private AccountOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface PolicyStatementOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.PolicyStatement)
com.google.protobuf.MessageOrBuilder {
/**
* string Effect = 1;
* @return The effect.
*/
java.lang.String getEffect();
/**
* string Effect = 1;
* @return The bytes for effect.
*/
com.google.protobuf.ByteString
getEffectBytes();
/**
* repeated string Principal = 2;
* @return A list containing the principal.
*/
java.util.List
getPrincipalList();
/**
* repeated string Principal = 2;
* @return The count of principal.
*/
int getPrincipalCount();
/**
* repeated string Principal = 2;
* @param index The index of the element to return.
* @return The principal at the given index.
*/
java.lang.String getPrincipal(int index);
/**
* repeated string Principal = 2;
* @param index The index of the value to return.
* @return The bytes of the principal at the given index.
*/
com.google.protobuf.ByteString
getPrincipalBytes(int index);
/**
* repeated string Action = 3;
* @return A list containing the action.
*/
java.util.List
getActionList();
/**
* repeated string Action = 3;
* @return The count of action.
*/
int getActionCount();
/**
* repeated string Action = 3;
* @param index The index of the element to return.
* @return The action at the given index.
*/
java.lang.String getAction(int index);
/**
* repeated string Action = 3;
* @param index The index of the value to return.
* @return The bytes of the action at the given index.
*/
com.google.protobuf.ByteString
getActionBytes(int index);
/**
* repeated string Resource = 4;
* @return A list containing the resource.
*/
java.util.List
getResourceList();
/**
* repeated string Resource = 4;
* @return The count of resource.
*/
int getResourceCount();
/**
* repeated string Resource = 4;
* @param index The index of the element to return.
* @return The resource at the given index.
*/
java.lang.String getResource(int index);
/**
* repeated string Resource = 4;
* @param index The index of the value to return.
* @return The bytes of the resource at the given index.
*/
com.google.protobuf.ByteString
getResourceBytes(int index);
}
/**
* Protobuf type {@code cz.proto.PolicyStatement}
*/
public static final class PolicyStatement extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.PolicyStatement)
PolicyStatementOrBuilder {
private static final long serialVersionUID = 0L;
// Use PolicyStatement.newBuilder() to construct.
private PolicyStatement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PolicyStatement() {
effect_ = "";
principal_ = com.google.protobuf.LazyStringArrayList.EMPTY;
action_ = com.google.protobuf.LazyStringArrayList.EMPTY;
resource_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PolicyStatement();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PolicyStatement(
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();
effect_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
principal_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
principal_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
action_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
action_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
resource_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
resource_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
principal_ = principal_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
action_ = action_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
resource_ = resource_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_PolicyStatement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_PolicyStatement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.PolicyStatement.class, cz.proto.AccountOuterClass.PolicyStatement.Builder.class);
}
public static final int EFFECT_FIELD_NUMBER = 1;
private volatile java.lang.Object effect_;
/**
* string Effect = 1;
* @return The effect.
*/
@java.lang.Override
public java.lang.String getEffect() {
java.lang.Object ref = effect_;
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();
effect_ = s;
return s;
}
}
/**
* string Effect = 1;
* @return The bytes for effect.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEffectBytes() {
java.lang.Object ref = effect_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
effect_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRINCIPAL_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList principal_;
/**
* repeated string Principal = 2;
* @return A list containing the principal.
*/
public com.google.protobuf.ProtocolStringList
getPrincipalList() {
return principal_;
}
/**
* repeated string Principal = 2;
* @return The count of principal.
*/
public int getPrincipalCount() {
return principal_.size();
}
/**
* repeated string Principal = 2;
* @param index The index of the element to return.
* @return The principal at the given index.
*/
public java.lang.String getPrincipal(int index) {
return principal_.get(index);
}
/**
* repeated string Principal = 2;
* @param index The index of the value to return.
* @return The bytes of the principal at the given index.
*/
public com.google.protobuf.ByteString
getPrincipalBytes(int index) {
return principal_.getByteString(index);
}
public static final int ACTION_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList action_;
/**
* repeated string Action = 3;
* @return A list containing the action.
*/
public com.google.protobuf.ProtocolStringList
getActionList() {
return action_;
}
/**
* repeated string Action = 3;
* @return The count of action.
*/
public int getActionCount() {
return action_.size();
}
/**
* repeated string Action = 3;
* @param index The index of the element to return.
* @return The action at the given index.
*/
public java.lang.String getAction(int index) {
return action_.get(index);
}
/**
* repeated string Action = 3;
* @param index The index of the value to return.
* @return The bytes of the action at the given index.
*/
public com.google.protobuf.ByteString
getActionBytes(int index) {
return action_.getByteString(index);
}
public static final int RESOURCE_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList resource_;
/**
* repeated string Resource = 4;
* @return A list containing the resource.
*/
public com.google.protobuf.ProtocolStringList
getResourceList() {
return resource_;
}
/**
* repeated string Resource = 4;
* @return The count of resource.
*/
public int getResourceCount() {
return resource_.size();
}
/**
* repeated string Resource = 4;
* @param index The index of the element to return.
* @return The resource at the given index.
*/
public java.lang.String getResource(int index) {
return resource_.get(index);
}
/**
* repeated string Resource = 4;
* @param index The index of the value to return.
* @return The bytes of the resource at the given index.
*/
public com.google.protobuf.ByteString
getResourceBytes(int index) {
return resource_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effect_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, effect_);
}
for (int i = 0; i < principal_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_.getRaw(i));
}
for (int i = 0; i < action_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, action_.getRaw(i));
}
for (int i = 0; i < resource_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effect_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, effect_);
}
{
int dataSize = 0;
for (int i = 0; i < principal_.size(); i++) {
dataSize += computeStringSizeNoTag(principal_.getRaw(i));
}
size += dataSize;
size += 1 * getPrincipalList().size();
}
{
int dataSize = 0;
for (int i = 0; i < action_.size(); i++) {
dataSize += computeStringSizeNoTag(action_.getRaw(i));
}
size += dataSize;
size += 1 * getActionList().size();
}
{
int dataSize = 0;
for (int i = 0; i < resource_.size(); i++) {
dataSize += computeStringSizeNoTag(resource_.getRaw(i));
}
size += dataSize;
size += 1 * getResourceList().size();
}
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.AccountOuterClass.PolicyStatement)) {
return super.equals(obj);
}
cz.proto.AccountOuterClass.PolicyStatement other = (cz.proto.AccountOuterClass.PolicyStatement) obj;
if (!getEffect()
.equals(other.getEffect())) return false;
if (!getPrincipalList()
.equals(other.getPrincipalList())) return false;
if (!getActionList()
.equals(other.getActionList())) return false;
if (!getResourceList()
.equals(other.getResourceList())) 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) + EFFECT_FIELD_NUMBER;
hash = (53 * hash) + getEffect().hashCode();
if (getPrincipalCount() > 0) {
hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER;
hash = (53 * hash) + getPrincipalList().hashCode();
}
if (getActionCount() > 0) {
hash = (37 * hash) + ACTION_FIELD_NUMBER;
hash = (53 * hash) + getActionList().hashCode();
}
if (getResourceCount() > 0) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResourceList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.AccountOuterClass.PolicyStatement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.PolicyStatement parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.PolicyStatement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.PolicyStatement 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.AccountOuterClass.PolicyStatement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.PolicyStatement parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.PolicyStatement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.PolicyStatement 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.AccountOuterClass.PolicyStatement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.PolicyStatement 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.AccountOuterClass.PolicyStatement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.PolicyStatement 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.AccountOuterClass.PolicyStatement 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.PolicyStatement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.PolicyStatement)
cz.proto.AccountOuterClass.PolicyStatementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_PolicyStatement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_PolicyStatement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.PolicyStatement.class, cz.proto.AccountOuterClass.PolicyStatement.Builder.class);
}
// Construct using cz.proto.AccountOuterClass.PolicyStatement.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();
effect_ = "";
principal_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
action_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
resource_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_PolicyStatement_descriptor;
}
@java.lang.Override
public cz.proto.AccountOuterClass.PolicyStatement getDefaultInstanceForType() {
return cz.proto.AccountOuterClass.PolicyStatement.getDefaultInstance();
}
@java.lang.Override
public cz.proto.AccountOuterClass.PolicyStatement build() {
cz.proto.AccountOuterClass.PolicyStatement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.AccountOuterClass.PolicyStatement buildPartial() {
cz.proto.AccountOuterClass.PolicyStatement result = new cz.proto.AccountOuterClass.PolicyStatement(this);
int from_bitField0_ = bitField0_;
result.effect_ = effect_;
if (((bitField0_ & 0x00000001) != 0)) {
principal_ = principal_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.principal_ = principal_;
if (((bitField0_ & 0x00000002) != 0)) {
action_ = action_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.action_ = action_;
if (((bitField0_ & 0x00000004) != 0)) {
resource_ = resource_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.resource_ = resource_;
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.AccountOuterClass.PolicyStatement) {
return mergeFrom((cz.proto.AccountOuterClass.PolicyStatement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.AccountOuterClass.PolicyStatement other) {
if (other == cz.proto.AccountOuterClass.PolicyStatement.getDefaultInstance()) return this;
if (!other.getEffect().isEmpty()) {
effect_ = other.effect_;
onChanged();
}
if (!other.principal_.isEmpty()) {
if (principal_.isEmpty()) {
principal_ = other.principal_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePrincipalIsMutable();
principal_.addAll(other.principal_);
}
onChanged();
}
if (!other.action_.isEmpty()) {
if (action_.isEmpty()) {
action_ = other.action_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureActionIsMutable();
action_.addAll(other.action_);
}
onChanged();
}
if (!other.resource_.isEmpty()) {
if (resource_.isEmpty()) {
resource_ = other.resource_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResourceIsMutable();
resource_.addAll(other.resource_);
}
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 {
cz.proto.AccountOuterClass.PolicyStatement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.AccountOuterClass.PolicyStatement) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object effect_ = "";
/**
* string Effect = 1;
* @return The effect.
*/
public java.lang.String getEffect() {
java.lang.Object ref = effect_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
effect_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Effect = 1;
* @return The bytes for effect.
*/
public com.google.protobuf.ByteString
getEffectBytes() {
java.lang.Object ref = effect_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
effect_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Effect = 1;
* @param value The effect to set.
* @return This builder for chaining.
*/
public Builder setEffect(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
effect_ = value;
onChanged();
return this;
}
/**
* string Effect = 1;
* @return This builder for chaining.
*/
public Builder clearEffect() {
effect_ = getDefaultInstance().getEffect();
onChanged();
return this;
}
/**
* string Effect = 1;
* @param value The bytes for effect to set.
* @return This builder for chaining.
*/
public Builder setEffectBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
effect_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList principal_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePrincipalIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
principal_ = new com.google.protobuf.LazyStringArrayList(principal_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string Principal = 2;
* @return A list containing the principal.
*/
public com.google.protobuf.ProtocolStringList
getPrincipalList() {
return principal_.getUnmodifiableView();
}
/**
* repeated string Principal = 2;
* @return The count of principal.
*/
public int getPrincipalCount() {
return principal_.size();
}
/**
* repeated string Principal = 2;
* @param index The index of the element to return.
* @return The principal at the given index.
*/
public java.lang.String getPrincipal(int index) {
return principal_.get(index);
}
/**
* repeated string Principal = 2;
* @param index The index of the value to return.
* @return The bytes of the principal at the given index.
*/
public com.google.protobuf.ByteString
getPrincipalBytes(int index) {
return principal_.getByteString(index);
}
/**
* repeated string Principal = 2;
* @param index The index to set the value at.
* @param value The principal to set.
* @return This builder for chaining.
*/
public Builder setPrincipal(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePrincipalIsMutable();
principal_.set(index, value);
onChanged();
return this;
}
/**
* repeated string Principal = 2;
* @param value The principal to add.
* @return This builder for chaining.
*/
public Builder addPrincipal(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePrincipalIsMutable();
principal_.add(value);
onChanged();
return this;
}
/**
* repeated string Principal = 2;
* @param values The principal to add.
* @return This builder for chaining.
*/
public Builder addAllPrincipal(
java.lang.Iterable values) {
ensurePrincipalIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, principal_);
onChanged();
return this;
}
/**
* repeated string Principal = 2;
* @return This builder for chaining.
*/
public Builder clearPrincipal() {
principal_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string Principal = 2;
* @param value The bytes of the principal to add.
* @return This builder for chaining.
*/
public Builder addPrincipalBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePrincipalIsMutable();
principal_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList action_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureActionIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
action_ = new com.google.protobuf.LazyStringArrayList(action_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string Action = 3;
* @return A list containing the action.
*/
public com.google.protobuf.ProtocolStringList
getActionList() {
return action_.getUnmodifiableView();
}
/**
* repeated string Action = 3;
* @return The count of action.
*/
public int getActionCount() {
return action_.size();
}
/**
* repeated string Action = 3;
* @param index The index of the element to return.
* @return The action at the given index.
*/
public java.lang.String getAction(int index) {
return action_.get(index);
}
/**
* repeated string Action = 3;
* @param index The index of the value to return.
* @return The bytes of the action at the given index.
*/
public com.google.protobuf.ByteString
getActionBytes(int index) {
return action_.getByteString(index);
}
/**
* repeated string Action = 3;
* @param index The index to set the value at.
* @param value The action to set.
* @return This builder for chaining.
*/
public Builder setAction(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureActionIsMutable();
action_.set(index, value);
onChanged();
return this;
}
/**
* repeated string Action = 3;
* @param value The action to add.
* @return This builder for chaining.
*/
public Builder addAction(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureActionIsMutable();
action_.add(value);
onChanged();
return this;
}
/**
* repeated string Action = 3;
* @param values The action to add.
* @return This builder for chaining.
*/
public Builder addAllAction(
java.lang.Iterable values) {
ensureActionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, action_);
onChanged();
return this;
}
/**
* repeated string Action = 3;
* @return This builder for chaining.
*/
public Builder clearAction() {
action_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string Action = 3;
* @param value The bytes of the action to add.
* @return This builder for chaining.
*/
public Builder addActionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureActionIsMutable();
action_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList resource_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureResourceIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
resource_ = new com.google.protobuf.LazyStringArrayList(resource_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string Resource = 4;
* @return A list containing the resource.
*/
public com.google.protobuf.ProtocolStringList
getResourceList() {
return resource_.getUnmodifiableView();
}
/**
* repeated string Resource = 4;
* @return The count of resource.
*/
public int getResourceCount() {
return resource_.size();
}
/**
* repeated string Resource = 4;
* @param index The index of the element to return.
* @return The resource at the given index.
*/
public java.lang.String getResource(int index) {
return resource_.get(index);
}
/**
* repeated string Resource = 4;
* @param index The index of the value to return.
* @return The bytes of the resource at the given index.
*/
public com.google.protobuf.ByteString
getResourceBytes(int index) {
return resource_.getByteString(index);
}
/**
* repeated string Resource = 4;
* @param index The index to set the value at.
* @param value The resource to set.
* @return This builder for chaining.
*/
public Builder setResource(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceIsMutable();
resource_.set(index, value);
onChanged();
return this;
}
/**
* repeated string Resource = 4;
* @param value The resource to add.
* @return This builder for chaining.
*/
public Builder addResource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceIsMutable();
resource_.add(value);
onChanged();
return this;
}
/**
* repeated string Resource = 4;
* @param values The resource to add.
* @return This builder for chaining.
*/
public Builder addAllResource(
java.lang.Iterable values) {
ensureResourceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resource_);
onChanged();
return this;
}
/**
* repeated string Resource = 4;
* @return This builder for chaining.
*/
public Builder clearResource() {
resource_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string Resource = 4;
* @param value The bytes of the resource to add.
* @return This builder for chaining.
*/
public Builder addResourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureResourceIsMutable();
resource_.add(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:cz.proto.PolicyStatement)
}
// @@protoc_insertion_point(class_scope:cz.proto.PolicyStatement)
private static final cz.proto.AccountOuterClass.PolicyStatement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.AccountOuterClass.PolicyStatement();
}
public static cz.proto.AccountOuterClass.PolicyStatement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PolicyStatement parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PolicyStatement(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.AccountOuterClass.PolicyStatement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.Policy)
com.google.protobuf.MessageOrBuilder {
/**
* string Version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
* string Version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
java.util.List
getStatementList();
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
cz.proto.AccountOuterClass.PolicyStatement getStatement(int index);
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
int getStatementCount();
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
java.util.List extends cz.proto.AccountOuterClass.PolicyStatementOrBuilder>
getStatementOrBuilderList();
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
cz.proto.AccountOuterClass.PolicyStatementOrBuilder getStatementOrBuilder(
int index);
}
/**
* Protobuf type {@code cz.proto.Policy}
*/
public static final class Policy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Policy)
PolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Policy.newBuilder() to construct.
private Policy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Policy() {
version_ = "";
statement_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Policy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Policy(
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();
version_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
statement_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
statement_.add(
input.readMessage(cz.proto.AccountOuterClass.PolicyStatement.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
statement_ = java.util.Collections.unmodifiableList(statement_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Policy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Policy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.Policy.class, cz.proto.AccountOuterClass.Policy.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object version_;
/**
* string Version = 1;
* @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;
}
}
/**
* string Version = 1;
* @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;
}
}
public static final int STATEMENT_FIELD_NUMBER = 2;
private java.util.List statement_;
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
@java.lang.Override
public java.util.List getStatementList() {
return statement_;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
@java.lang.Override
public java.util.List extends cz.proto.AccountOuterClass.PolicyStatementOrBuilder>
getStatementOrBuilderList() {
return statement_;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
@java.lang.Override
public int getStatementCount() {
return statement_.size();
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
@java.lang.Override
public cz.proto.AccountOuterClass.PolicyStatement getStatement(int index) {
return statement_.get(index);
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
@java.lang.Override
public cz.proto.AccountOuterClass.PolicyStatementOrBuilder getStatementOrBuilder(
int index) {
return statement_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
for (int i = 0; i < statement_.size(); i++) {
output.writeMessage(2, statement_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
for (int i = 0; i < statement_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, statement_.get(i));
}
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.AccountOuterClass.Policy)) {
return super.equals(obj);
}
cz.proto.AccountOuterClass.Policy other = (cz.proto.AccountOuterClass.Policy) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getStatementList()
.equals(other.getStatementList())) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (getStatementCount() > 0) {
hash = (37 * hash) + STATEMENT_FIELD_NUMBER;
hash = (53 * hash) + getStatementList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.AccountOuterClass.Policy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Policy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.Policy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Policy 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.AccountOuterClass.Policy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Policy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.Policy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Policy 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.AccountOuterClass.Policy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Policy 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.AccountOuterClass.Policy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Policy 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.AccountOuterClass.Policy 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.Policy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Policy)
cz.proto.AccountOuterClass.PolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Policy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Policy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.Policy.class, cz.proto.AccountOuterClass.Policy.Builder.class);
}
// Construct using cz.proto.AccountOuterClass.Policy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatementFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = "";
if (statementBuilder_ == null) {
statement_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
statementBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Policy_descriptor;
}
@java.lang.Override
public cz.proto.AccountOuterClass.Policy getDefaultInstanceForType() {
return cz.proto.AccountOuterClass.Policy.getDefaultInstance();
}
@java.lang.Override
public cz.proto.AccountOuterClass.Policy build() {
cz.proto.AccountOuterClass.Policy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.AccountOuterClass.Policy buildPartial() {
cz.proto.AccountOuterClass.Policy result = new cz.proto.AccountOuterClass.Policy(this);
int from_bitField0_ = bitField0_;
result.version_ = version_;
if (statementBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
statement_ = java.util.Collections.unmodifiableList(statement_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.statement_ = statement_;
} else {
result.statement_ = statementBuilder_.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.AccountOuterClass.Policy) {
return mergeFrom((cz.proto.AccountOuterClass.Policy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.AccountOuterClass.Policy other) {
if (other == cz.proto.AccountOuterClass.Policy.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (statementBuilder_ == null) {
if (!other.statement_.isEmpty()) {
if (statement_.isEmpty()) {
statement_ = other.statement_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatementIsMutable();
statement_.addAll(other.statement_);
}
onChanged();
}
} else {
if (!other.statement_.isEmpty()) {
if (statementBuilder_.isEmpty()) {
statementBuilder_.dispose();
statementBuilder_ = null;
statement_ = other.statement_;
bitField0_ = (bitField0_ & ~0x00000001);
statementBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStatementFieldBuilder() : null;
} else {
statementBuilder_.addAllMessages(other.statement_);
}
}
}
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.AccountOuterClass.Policy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.AccountOuterClass.Policy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object version_ = "";
/**
* string Version = 1;
* @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;
}
}
/**
* string Version = 1;
* @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;
}
}
/**
* string Version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* string Version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string Version = 1;
* @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);
version_ = value;
onChanged();
return this;
}
private java.util.List statement_ =
java.util.Collections.emptyList();
private void ensureStatementIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
statement_ = new java.util.ArrayList(statement_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.AccountOuterClass.PolicyStatement, cz.proto.AccountOuterClass.PolicyStatement.Builder, cz.proto.AccountOuterClass.PolicyStatementOrBuilder> statementBuilder_;
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public java.util.List getStatementList() {
if (statementBuilder_ == null) {
return java.util.Collections.unmodifiableList(statement_);
} else {
return statementBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public int getStatementCount() {
if (statementBuilder_ == null) {
return statement_.size();
} else {
return statementBuilder_.getCount();
}
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public cz.proto.AccountOuterClass.PolicyStatement getStatement(int index) {
if (statementBuilder_ == null) {
return statement_.get(index);
} else {
return statementBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder setStatement(
int index, cz.proto.AccountOuterClass.PolicyStatement value) {
if (statementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatementIsMutable();
statement_.set(index, value);
onChanged();
} else {
statementBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder setStatement(
int index, cz.proto.AccountOuterClass.PolicyStatement.Builder builderForValue) {
if (statementBuilder_ == null) {
ensureStatementIsMutable();
statement_.set(index, builderForValue.build());
onChanged();
} else {
statementBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder addStatement(cz.proto.AccountOuterClass.PolicyStatement value) {
if (statementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatementIsMutable();
statement_.add(value);
onChanged();
} else {
statementBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder addStatement(
int index, cz.proto.AccountOuterClass.PolicyStatement value) {
if (statementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatementIsMutable();
statement_.add(index, value);
onChanged();
} else {
statementBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder addStatement(
cz.proto.AccountOuterClass.PolicyStatement.Builder builderForValue) {
if (statementBuilder_ == null) {
ensureStatementIsMutable();
statement_.add(builderForValue.build());
onChanged();
} else {
statementBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder addStatement(
int index, cz.proto.AccountOuterClass.PolicyStatement.Builder builderForValue) {
if (statementBuilder_ == null) {
ensureStatementIsMutable();
statement_.add(index, builderForValue.build());
onChanged();
} else {
statementBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder addAllStatement(
java.lang.Iterable extends cz.proto.AccountOuterClass.PolicyStatement> values) {
if (statementBuilder_ == null) {
ensureStatementIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, statement_);
onChanged();
} else {
statementBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder clearStatement() {
if (statementBuilder_ == null) {
statement_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
statementBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public Builder removeStatement(int index) {
if (statementBuilder_ == null) {
ensureStatementIsMutable();
statement_.remove(index);
onChanged();
} else {
statementBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public cz.proto.AccountOuterClass.PolicyStatement.Builder getStatementBuilder(
int index) {
return getStatementFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public cz.proto.AccountOuterClass.PolicyStatementOrBuilder getStatementOrBuilder(
int index) {
if (statementBuilder_ == null) {
return statement_.get(index); } else {
return statementBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public java.util.List extends cz.proto.AccountOuterClass.PolicyStatementOrBuilder>
getStatementOrBuilderList() {
if (statementBuilder_ != null) {
return statementBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(statement_);
}
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public cz.proto.AccountOuterClass.PolicyStatement.Builder addStatementBuilder() {
return getStatementFieldBuilder().addBuilder(
cz.proto.AccountOuterClass.PolicyStatement.getDefaultInstance());
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public cz.proto.AccountOuterClass.PolicyStatement.Builder addStatementBuilder(
int index) {
return getStatementFieldBuilder().addBuilder(
index, cz.proto.AccountOuterClass.PolicyStatement.getDefaultInstance());
}
/**
* repeated .cz.proto.PolicyStatement Statement = 2;
*/
public java.util.List
getStatementBuilderList() {
return getStatementFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.AccountOuterClass.PolicyStatement, cz.proto.AccountOuterClass.PolicyStatement.Builder, cz.proto.AccountOuterClass.PolicyStatementOrBuilder>
getStatementFieldBuilder() {
if (statementBuilder_ == null) {
statementBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.AccountOuterClass.PolicyStatement, cz.proto.AccountOuterClass.PolicyStatement.Builder, cz.proto.AccountOuterClass.PolicyStatementOrBuilder>(
statement_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
statement_ = null;
}
return statementBuilder_;
}
@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.Policy)
}
// @@protoc_insertion_point(class_scope:cz.proto.Policy)
private static final cz.proto.AccountOuterClass.Policy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.AccountOuterClass.Policy();
}
public static cz.proto.AccountOuterClass.Policy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Policy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Policy(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.AccountOuterClass.Policy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.Account)
com.google.protobuf.MessageOrBuilder {
/**
* int64 account_id = 1;
* @return The accountId.
*/
long getAccountId();
/**
* string user_name = 2;
* @return The userName.
*/
java.lang.String getUserName();
/**
* string user_name = 2;
* @return The bytes for userName.
*/
com.google.protobuf.ByteString
getUserNameBytes();
/**
* int64 user_id = 3;
* @return The userId.
*/
long getUserId();
/**
* optional .cz.proto.PrincipalType type = 4;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional .cz.proto.PrincipalType type = 4;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* optional .cz.proto.PrincipalType type = 4;
* @return The type.
*/
cz.proto.PrincipalType getType();
/**
* optional .cz.proto.Policy policy = 5;
* @return Whether the policy field is set.
*/
boolean hasPolicy();
/**
* optional .cz.proto.Policy policy = 5;
* @return The policy.
*/
cz.proto.AccountOuterClass.Policy getPolicy();
/**
* optional .cz.proto.Policy policy = 5;
*/
cz.proto.AccountOuterClass.PolicyOrBuilder getPolicyOrBuilder();
}
/**
* Protobuf type {@code cz.proto.Account}
*/
public static final class Account extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Account)
AccountOrBuilder {
private static final long serialVersionUID = 0L;
// Use Account.newBuilder() to construct.
private Account(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Account() {
userName_ = "";
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Account();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Account(
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: {
accountId_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
userName_ = s;
break;
}
case 24: {
userId_ = input.readInt64();
break;
}
case 32: {
int rawValue = input.readEnum();
bitField0_ |= 0x00000001;
type_ = rawValue;
break;
}
case 42: {
cz.proto.AccountOuterClass.Policy.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = policy_.toBuilder();
}
policy_ = input.readMessage(cz.proto.AccountOuterClass.Policy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(policy_);
policy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
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.AccountOuterClass.internal_static_cz_proto_Account_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Account_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.Account.class, cz.proto.AccountOuterClass.Account.Builder.class);
}
private int bitField0_;
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private long accountId_;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int USER_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object userName_;
/**
* string user_name = 2;
* @return The userName.
*/
@java.lang.Override
public java.lang.String getUserName() {
java.lang.Object ref = userName_;
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();
userName_ = s;
return s;
}
}
/**
* string user_name = 2;
* @return The bytes for userName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserNameBytes() {
java.lang.Object ref = userName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_ID_FIELD_NUMBER = 3;
private long userId_;
/**
* int64 user_id = 3;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_;
/**
* optional .cz.proto.PrincipalType type = 4;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .cz.proto.PrincipalType type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* optional .cz.proto.PrincipalType type = 4;
* @return The type.
*/
@java.lang.Override public cz.proto.PrincipalType getType() {
@SuppressWarnings("deprecation")
cz.proto.PrincipalType result = cz.proto.PrincipalType.valueOf(type_);
return result == null ? cz.proto.PrincipalType.UNRECOGNIZED : result;
}
public static final int POLICY_FIELD_NUMBER = 5;
private cz.proto.AccountOuterClass.Policy policy_;
/**
* optional .cz.proto.Policy policy = 5;
* @return Whether the policy field is set.
*/
@java.lang.Override
public boolean hasPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .cz.proto.Policy policy = 5;
* @return The policy.
*/
@java.lang.Override
public cz.proto.AccountOuterClass.Policy getPolicy() {
return policy_ == null ? cz.proto.AccountOuterClass.Policy.getDefaultInstance() : policy_;
}
/**
* optional .cz.proto.Policy policy = 5;
*/
@java.lang.Override
public cz.proto.AccountOuterClass.PolicyOrBuilder getPolicyOrBuilder() {
return policy_ == null ? cz.proto.AccountOuterClass.Policy.getDefaultInstance() : policy_;
}
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 (accountId_ != 0L) {
output.writeInt64(1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userName_);
}
if (userId_ != 0L) {
output.writeInt64(3, userId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(4, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getPolicy());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userName_);
}
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, userId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPolicy());
}
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.AccountOuterClass.Account)) {
return super.equals(obj);
}
cz.proto.AccountOuterClass.Account other = (cz.proto.AccountOuterClass.Account) obj;
if (getAccountId()
!= other.getAccountId()) return false;
if (!getUserName()
.equals(other.getUserName())) return false;
if (getUserId()
!= other.getUserId()) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (hasPolicy() != other.hasPolicy()) return false;
if (hasPolicy()) {
if (!getPolicy()
.equals(other.getPolicy())) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + USER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getUserName().hashCode();
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUserId());
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasPolicy()) {
hash = (37 * hash) + POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.AccountOuterClass.Account parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Account parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.Account parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Account 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.AccountOuterClass.Account parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Account parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.Account parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Account 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.AccountOuterClass.Account parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Account 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.AccountOuterClass.Account parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Account 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.AccountOuterClass.Account 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.Account}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Account)
cz.proto.AccountOuterClass.AccountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Account_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Account_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.Account.class, cz.proto.AccountOuterClass.Account.Builder.class);
}
// Construct using cz.proto.AccountOuterClass.Account.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPolicyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
accountId_ = 0L;
userName_ = "";
userId_ = 0L;
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (policyBuilder_ == null) {
policy_ = null;
} else {
policyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Account_descriptor;
}
@java.lang.Override
public cz.proto.AccountOuterClass.Account getDefaultInstanceForType() {
return cz.proto.AccountOuterClass.Account.getDefaultInstance();
}
@java.lang.Override
public cz.proto.AccountOuterClass.Account build() {
cz.proto.AccountOuterClass.Account result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.AccountOuterClass.Account buildPartial() {
cz.proto.AccountOuterClass.Account result = new cz.proto.AccountOuterClass.Account(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.accountId_ = accountId_;
result.userName_ = userName_;
result.userId_ = userId_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (policyBuilder_ == null) {
result.policy_ = policy_;
} else {
result.policy_ = policyBuilder_.build();
}
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 cz.proto.AccountOuterClass.Account) {
return mergeFrom((cz.proto.AccountOuterClass.Account)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.AccountOuterClass.Account other) {
if (other == cz.proto.AccountOuterClass.Account.getDefaultInstance()) return this;
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (!other.getUserName().isEmpty()) {
userName_ = other.userName_;
onChanged();
}
if (other.getUserId() != 0L) {
setUserId(other.getUserId());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasPolicy()) {
mergePolicy(other.getPolicy());
}
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.AccountOuterClass.Account parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.AccountOuterClass.Account) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long accountId_ ;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
* int64 account_id = 1;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private java.lang.Object userName_ = "";
/**
* string user_name = 2;
* @return The userName.
*/
public java.lang.String getUserName() {
java.lang.Object ref = userName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string user_name = 2;
* @return The bytes for userName.
*/
public com.google.protobuf.ByteString
getUserNameBytes() {
java.lang.Object ref = userName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string user_name = 2;
* @param value The userName to set.
* @return This builder for chaining.
*/
public Builder setUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userName_ = value;
onChanged();
return this;
}
/**
* string user_name = 2;
* @return This builder for chaining.
*/
public Builder clearUserName() {
userName_ = getDefaultInstance().getUserName();
onChanged();
return this;
}
/**
* string user_name = 2;
* @param value The bytes for userName to set.
* @return This builder for chaining.
*/
public Builder setUserNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userName_ = value;
onChanged();
return this;
}
private long userId_ ;
/**
* int64 user_id = 3;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
/**
* int64 user_id = 3;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(long value) {
userId_ = value;
onChanged();
return this;
}
/**
* int64 user_id = 3;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = 0L;
onChanged();
return this;
}
private int type_ = 0;
/**
* optional .cz.proto.PrincipalType type = 4;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .cz.proto.PrincipalType type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* optional .cz.proto.PrincipalType type = 4;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* optional .cz.proto.PrincipalType type = 4;
* @return The type.
*/
@java.lang.Override
public cz.proto.PrincipalType getType() {
@SuppressWarnings("deprecation")
cz.proto.PrincipalType result = cz.proto.PrincipalType.valueOf(type_);
return result == null ? cz.proto.PrincipalType.UNRECOGNIZED : result;
}
/**
* optional .cz.proto.PrincipalType type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(cz.proto.PrincipalType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .cz.proto.PrincipalType type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private cz.proto.AccountOuterClass.Policy policy_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AccountOuterClass.Policy, cz.proto.AccountOuterClass.Policy.Builder, cz.proto.AccountOuterClass.PolicyOrBuilder> policyBuilder_;
/**
* optional .cz.proto.Policy policy = 5;
* @return Whether the policy field is set.
*/
public boolean hasPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .cz.proto.Policy policy = 5;
* @return The policy.
*/
public cz.proto.AccountOuterClass.Policy getPolicy() {
if (policyBuilder_ == null) {
return policy_ == null ? cz.proto.AccountOuterClass.Policy.getDefaultInstance() : policy_;
} else {
return policyBuilder_.getMessage();
}
}
/**
* optional .cz.proto.Policy policy = 5;
*/
public Builder setPolicy(cz.proto.AccountOuterClass.Policy value) {
if (policyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
policy_ = value;
onChanged();
} else {
policyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .cz.proto.Policy policy = 5;
*/
public Builder setPolicy(
cz.proto.AccountOuterClass.Policy.Builder builderForValue) {
if (policyBuilder_ == null) {
policy_ = builderForValue.build();
onChanged();
} else {
policyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .cz.proto.Policy policy = 5;
*/
public Builder mergePolicy(cz.proto.AccountOuterClass.Policy value) {
if (policyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
policy_ != null &&
policy_ != cz.proto.AccountOuterClass.Policy.getDefaultInstance()) {
policy_ =
cz.proto.AccountOuterClass.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
} else {
policy_ = value;
}
onChanged();
} else {
policyBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .cz.proto.Policy policy = 5;
*/
public Builder clearPolicy() {
if (policyBuilder_ == null) {
policy_ = null;
onChanged();
} else {
policyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .cz.proto.Policy policy = 5;
*/
public cz.proto.AccountOuterClass.Policy.Builder getPolicyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPolicyFieldBuilder().getBuilder();
}
/**
* optional .cz.proto.Policy policy = 5;
*/
public cz.proto.AccountOuterClass.PolicyOrBuilder getPolicyOrBuilder() {
if (policyBuilder_ != null) {
return policyBuilder_.getMessageOrBuilder();
} else {
return policy_ == null ?
cz.proto.AccountOuterClass.Policy.getDefaultInstance() : policy_;
}
}
/**
* optional .cz.proto.Policy policy = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AccountOuterClass.Policy, cz.proto.AccountOuterClass.Policy.Builder, cz.proto.AccountOuterClass.PolicyOrBuilder>
getPolicyFieldBuilder() {
if (policyBuilder_ == null) {
policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.AccountOuterClass.Policy, cz.proto.AccountOuterClass.Policy.Builder, cz.proto.AccountOuterClass.PolicyOrBuilder>(
getPolicy(),
getParentForChildren(),
isClean());
policy_ = null;
}
return policyBuilder_;
}
@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.Account)
}
// @@protoc_insertion_point(class_scope:cz.proto.Account)
private static final cz.proto.AccountOuterClass.Account DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.AccountOuterClass.Account();
}
public static cz.proto.AccountOuterClass.Account getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Account parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Account(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.AccountOuterClass.Account getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InstanceOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.Instance)
com.google.protobuf.MessageOrBuilder {
/**
* string account_name = 4;
* @return The accountName.
*/
java.lang.String getAccountName();
/**
* string account_name = 4;
* @return The bytes for accountName.
*/
com.google.protobuf.ByteString
getAccountNameBytes();
/**
* int64 account_id = 1;
* @return The accountId.
*/
long getAccountId();
/**
* int64 instance_id = 2;
* @return The instanceId.
*/
long getInstanceId();
/**
* string instance_name = 3;
* @return The instanceName.
*/
java.lang.String getInstanceName();
/**
* string instance_name = 3;
* @return The bytes for instanceName.
*/
com.google.protobuf.ByteString
getInstanceNameBytes();
}
/**
* Protobuf type {@code cz.proto.Instance}
*/
public static final class Instance extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Instance)
InstanceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Instance.newBuilder() to construct.
private Instance(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Instance() {
accountName_ = "";
instanceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Instance();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Instance(
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: {
accountId_ = input.readInt64();
break;
}
case 16: {
instanceId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
instanceName_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
accountName_ = 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 cz.proto.AccountOuterClass.internal_static_cz_proto_Instance_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Instance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.Instance.class, cz.proto.AccountOuterClass.Instance.Builder.class);
}
public static final int ACCOUNT_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object accountName_;
/**
* string account_name = 4;
* @return The accountName.
*/
@java.lang.Override
public java.lang.String getAccountName() {
java.lang.Object ref = accountName_;
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();
accountName_ = s;
return s;
}
}
/**
* string account_name = 4;
* @return The bytes for accountName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountNameBytes() {
java.lang.Object ref = accountName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private long accountId_;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int INSTANCE_ID_FIELD_NUMBER = 2;
private long instanceId_;
/**
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
public static final int INSTANCE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object instanceName_;
/**
* string instance_name = 3;
* @return The instanceName.
*/
@java.lang.Override
public java.lang.String getInstanceName() {
java.lang.Object ref = instanceName_;
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();
instanceName_ = s;
return s;
}
}
/**
* string instance_name = 3;
* @return The bytes for instanceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = 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 (accountId_ != 0L) {
output.writeInt64(1, accountId_);
}
if (instanceId_ != 0L) {
output.writeInt64(2, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, accountName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, accountId_);
}
if (instanceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, instanceId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, accountName_);
}
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.AccountOuterClass.Instance)) {
return super.equals(obj);
}
cz.proto.AccountOuterClass.Instance other = (cz.proto.AccountOuterClass.Instance) obj;
if (!getAccountName()
.equals(other.getAccountName())) return false;
if (getAccountId()
!= other.getAccountId()) return false;
if (getInstanceId()
!= other.getInstanceId()) return false;
if (!getInstanceName()
.equals(other.getInstanceName())) 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) + ACCOUNT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getAccountName().hashCode();
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInstanceId());
hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getInstanceName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.AccountOuterClass.Instance parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Instance parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.Instance parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Instance 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.AccountOuterClass.Instance parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.Instance parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.Instance parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Instance 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.AccountOuterClass.Instance parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Instance 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.AccountOuterClass.Instance parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.Instance 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.AccountOuterClass.Instance 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.Instance}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Instance)
cz.proto.AccountOuterClass.InstanceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Instance_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Instance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.Instance.class, cz.proto.AccountOuterClass.Instance.Builder.class);
}
// Construct using cz.proto.AccountOuterClass.Instance.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();
accountName_ = "";
accountId_ = 0L;
instanceId_ = 0L;
instanceName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_Instance_descriptor;
}
@java.lang.Override
public cz.proto.AccountOuterClass.Instance getDefaultInstanceForType() {
return cz.proto.AccountOuterClass.Instance.getDefaultInstance();
}
@java.lang.Override
public cz.proto.AccountOuterClass.Instance build() {
cz.proto.AccountOuterClass.Instance result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.AccountOuterClass.Instance buildPartial() {
cz.proto.AccountOuterClass.Instance result = new cz.proto.AccountOuterClass.Instance(this);
result.accountName_ = accountName_;
result.accountId_ = accountId_;
result.instanceId_ = instanceId_;
result.instanceName_ = instanceName_;
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.AccountOuterClass.Instance) {
return mergeFrom((cz.proto.AccountOuterClass.Instance)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.AccountOuterClass.Instance other) {
if (other == cz.proto.AccountOuterClass.Instance.getDefaultInstance()) return this;
if (!other.getAccountName().isEmpty()) {
accountName_ = other.accountName_;
onChanged();
}
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (other.getInstanceId() != 0L) {
setInstanceId(other.getInstanceId());
}
if (!other.getInstanceName().isEmpty()) {
instanceName_ = other.instanceName_;
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 {
cz.proto.AccountOuterClass.Instance parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.AccountOuterClass.Instance) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object accountName_ = "";
/**
* string account_name = 4;
* @return The accountName.
*/
public java.lang.String getAccountName() {
java.lang.Object ref = accountName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accountName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string account_name = 4;
* @return The bytes for accountName.
*/
public com.google.protobuf.ByteString
getAccountNameBytes() {
java.lang.Object ref = accountName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accountName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string account_name = 4;
* @param value The accountName to set.
* @return This builder for chaining.
*/
public Builder setAccountName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
accountName_ = value;
onChanged();
return this;
}
/**
* string account_name = 4;
* @return This builder for chaining.
*/
public Builder clearAccountName() {
accountName_ = getDefaultInstance().getAccountName();
onChanged();
return this;
}
/**
* string account_name = 4;
* @param value The bytes for accountName to set.
* @return This builder for chaining.
*/
public Builder setAccountNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
accountName_ = value;
onChanged();
return this;
}
private long accountId_ ;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
* int64 account_id = 1;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private long instanceId_ ;
/**
* int64 instance_id = 2;
* @return The instanceId.
*/
@java.lang.Override
public long getInstanceId() {
return instanceId_;
}
/**
* int64 instance_id = 2;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(long value) {
instanceId_ = value;
onChanged();
return this;
}
/**
* int64 instance_id = 2;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = 0L;
onChanged();
return this;
}
private java.lang.Object instanceName_ = "";
/**
* string instance_name = 3;
* @return The instanceName.
*/
public java.lang.String getInstanceName() {
java.lang.Object ref = instanceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string instance_name = 3;
* @return The bytes for instanceName.
*/
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string instance_name = 3;
* @param value The instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceName_ = value;
onChanged();
return this;
}
/**
* string instance_name = 3;
* @return This builder for chaining.
*/
public Builder clearInstanceName() {
instanceName_ = getDefaultInstance().getInstanceName();
onChanged();
return this;
}
/**
* string instance_name = 3;
* @param value The bytes for instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceName_ = 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:cz.proto.Instance)
}
// @@protoc_insertion_point(class_scope:cz.proto.Instance)
private static final cz.proto.AccountOuterClass.Instance DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.AccountOuterClass.Instance();
}
public static cz.proto.AccountOuterClass.Instance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Instance parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Instance(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.AccountOuterClass.Instance getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserIdentifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.UserIdentifier)
com.google.protobuf.MessageOrBuilder {
/**
* .cz.proto.ObjectIdentifier identifier = 1;
* @return Whether the identifier field is set.
*/
boolean hasIdentifier();
/**
* .cz.proto.ObjectIdentifier identifier = 1;
* @return The identifier.
*/
cz.proto.ObjectIdentifier getIdentifier();
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
cz.proto.ObjectIdentifierOrBuilder getIdentifierOrBuilder();
/**
* int64 user_id = 2;
* @return The userId.
*/
long getUserId();
}
/**
* Protobuf type {@code cz.proto.UserIdentifier}
*/
public static final class UserIdentifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.UserIdentifier)
UserIdentifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserIdentifier.newBuilder() to construct.
private UserIdentifier(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserIdentifier() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UserIdentifier();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserIdentifier(
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 10: {
cz.proto.ObjectIdentifier.Builder subBuilder = null;
if (identifier_ != null) {
subBuilder = identifier_.toBuilder();
}
identifier_ = input.readMessage(cz.proto.ObjectIdentifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(identifier_);
identifier_ = subBuilder.buildPartial();
}
break;
}
case 16: {
userId_ = input.readInt64();
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.AccountOuterClass.internal_static_cz_proto_UserIdentifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_UserIdentifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.UserIdentifier.class, cz.proto.AccountOuterClass.UserIdentifier.Builder.class);
}
public static final int IDENTIFIER_FIELD_NUMBER = 1;
private cz.proto.ObjectIdentifier identifier_;
/**
* .cz.proto.ObjectIdentifier identifier = 1;
* @return Whether the identifier field is set.
*/
@java.lang.Override
public boolean hasIdentifier() {
return identifier_ != null;
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
* @return The identifier.
*/
@java.lang.Override
public cz.proto.ObjectIdentifier getIdentifier() {
return identifier_ == null ? cz.proto.ObjectIdentifier.getDefaultInstance() : identifier_;
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
@java.lang.Override
public cz.proto.ObjectIdentifierOrBuilder getIdentifierOrBuilder() {
return getIdentifier();
}
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_;
}
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 (identifier_ != null) {
output.writeMessage(1, getIdentifier());
}
if (userId_ != 0L) {
output.writeInt64(2, userId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getIdentifier());
}
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, userId_);
}
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.AccountOuterClass.UserIdentifier)) {
return super.equals(obj);
}
cz.proto.AccountOuterClass.UserIdentifier other = (cz.proto.AccountOuterClass.UserIdentifier) obj;
if (hasIdentifier() != other.hasIdentifier()) return false;
if (hasIdentifier()) {
if (!getIdentifier()
.equals(other.getIdentifier())) return false;
}
if (getUserId()
!= other.getUserId()) 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 (hasIdentifier()) {
hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getIdentifier().hashCode();
}
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUserId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.AccountOuterClass.UserIdentifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.UserIdentifier parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.UserIdentifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.UserIdentifier 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.AccountOuterClass.UserIdentifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.UserIdentifier parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.UserIdentifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.UserIdentifier 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.AccountOuterClass.UserIdentifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.UserIdentifier 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.AccountOuterClass.UserIdentifier parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.UserIdentifier 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.AccountOuterClass.UserIdentifier 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.UserIdentifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.UserIdentifier)
cz.proto.AccountOuterClass.UserIdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_UserIdentifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_UserIdentifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.UserIdentifier.class, cz.proto.AccountOuterClass.UserIdentifier.Builder.class);
}
// Construct using cz.proto.AccountOuterClass.UserIdentifier.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();
if (identifierBuilder_ == null) {
identifier_ = null;
} else {
identifier_ = null;
identifierBuilder_ = null;
}
userId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_UserIdentifier_descriptor;
}
@java.lang.Override
public cz.proto.AccountOuterClass.UserIdentifier getDefaultInstanceForType() {
return cz.proto.AccountOuterClass.UserIdentifier.getDefaultInstance();
}
@java.lang.Override
public cz.proto.AccountOuterClass.UserIdentifier build() {
cz.proto.AccountOuterClass.UserIdentifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.AccountOuterClass.UserIdentifier buildPartial() {
cz.proto.AccountOuterClass.UserIdentifier result = new cz.proto.AccountOuterClass.UserIdentifier(this);
if (identifierBuilder_ == null) {
result.identifier_ = identifier_;
} else {
result.identifier_ = identifierBuilder_.build();
}
result.userId_ = userId_;
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.AccountOuterClass.UserIdentifier) {
return mergeFrom((cz.proto.AccountOuterClass.UserIdentifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.AccountOuterClass.UserIdentifier other) {
if (other == cz.proto.AccountOuterClass.UserIdentifier.getDefaultInstance()) return this;
if (other.hasIdentifier()) {
mergeIdentifier(other.getIdentifier());
}
if (other.getUserId() != 0L) {
setUserId(other.getUserId());
}
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.AccountOuterClass.UserIdentifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.AccountOuterClass.UserIdentifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private cz.proto.ObjectIdentifier identifier_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder> identifierBuilder_;
/**
* .cz.proto.ObjectIdentifier identifier = 1;
* @return Whether the identifier field is set.
*/
public boolean hasIdentifier() {
return identifierBuilder_ != null || identifier_ != null;
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
* @return The identifier.
*/
public cz.proto.ObjectIdentifier getIdentifier() {
if (identifierBuilder_ == null) {
return identifier_ == null ? cz.proto.ObjectIdentifier.getDefaultInstance() : identifier_;
} else {
return identifierBuilder_.getMessage();
}
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
public Builder setIdentifier(cz.proto.ObjectIdentifier value) {
if (identifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
} else {
identifierBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
public Builder setIdentifier(
cz.proto.ObjectIdentifier.Builder builderForValue) {
if (identifierBuilder_ == null) {
identifier_ = builderForValue.build();
onChanged();
} else {
identifierBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
public Builder mergeIdentifier(cz.proto.ObjectIdentifier value) {
if (identifierBuilder_ == null) {
if (identifier_ != null) {
identifier_ =
cz.proto.ObjectIdentifier.newBuilder(identifier_).mergeFrom(value).buildPartial();
} else {
identifier_ = value;
}
onChanged();
} else {
identifierBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
public Builder clearIdentifier() {
if (identifierBuilder_ == null) {
identifier_ = null;
onChanged();
} else {
identifier_ = null;
identifierBuilder_ = null;
}
return this;
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
public cz.proto.ObjectIdentifier.Builder getIdentifierBuilder() {
onChanged();
return getIdentifierFieldBuilder().getBuilder();
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
public cz.proto.ObjectIdentifierOrBuilder getIdentifierOrBuilder() {
if (identifierBuilder_ != null) {
return identifierBuilder_.getMessageOrBuilder();
} else {
return identifier_ == null ?
cz.proto.ObjectIdentifier.getDefaultInstance() : identifier_;
}
}
/**
* .cz.proto.ObjectIdentifier identifier = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder>
getIdentifierFieldBuilder() {
if (identifierBuilder_ == null) {
identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder>(
getIdentifier(),
getParentForChildren(),
isClean());
identifier_ = null;
}
return identifierBuilder_;
}
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;
}
@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.UserIdentifier)
}
// @@protoc_insertion_point(class_scope:cz.proto.UserIdentifier)
private static final cz.proto.AccountOuterClass.UserIdentifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.AccountOuterClass.UserIdentifier();
}
public static cz.proto.AccountOuterClass.UserIdentifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserIdentifier parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserIdentifier(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.AccountOuterClass.UserIdentifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.User)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 user_id = 1;
* @return Whether the userId field is set.
*/
boolean hasUserId();
/**
* optional int64 user_id = 1;
* @return The userId.
*/
long getUserId();
/**
* string default_vc = 2;
* @return The defaultVc.
*/
java.lang.String getDefaultVc();
/**
* string default_vc = 2;
* @return The bytes for defaultVc.
*/
com.google.protobuf.ByteString
getDefaultVcBytes();
/**
* string default_schema = 3;
* @return The defaultSchema.
*/
java.lang.String getDefaultSchema();
/**
* string default_schema = 3;
* @return The bytes for defaultSchema.
*/
com.google.protobuf.ByteString
getDefaultSchemaBytes();
}
/**
* Protobuf type {@code cz.proto.User}
*/
public static final class User extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.User)
UserOrBuilder {
private static final long serialVersionUID = 0L;
// Use User.newBuilder() to construct.
private User(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private User() {
defaultVc_ = "";
defaultSchema_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new User();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private User(
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;
userId_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
defaultVc_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
defaultSchema_ = 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 cz.proto.AccountOuterClass.internal_static_cz_proto_User_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.User.class, cz.proto.AccountOuterClass.User.Builder.class);
}
private int bitField0_;
public static final int USER_ID_FIELD_NUMBER = 1;
private long userId_;
/**
* optional int64 user_id = 1;
* @return Whether the userId field is set.
*/
@java.lang.Override
public boolean hasUserId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 user_id = 1;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
public static final int DEFAULT_VC_FIELD_NUMBER = 2;
private volatile java.lang.Object defaultVc_;
/**
* string default_vc = 2;
* @return The defaultVc.
*/
@java.lang.Override
public java.lang.String getDefaultVc() {
java.lang.Object ref = defaultVc_;
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();
defaultVc_ = s;
return s;
}
}
/**
* string default_vc = 2;
* @return The bytes for defaultVc.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultVcBytes() {
java.lang.Object ref = defaultVc_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultVc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_SCHEMA_FIELD_NUMBER = 3;
private volatile java.lang.Object defaultSchema_;
/**
* string default_schema = 3;
* @return The defaultSchema.
*/
@java.lang.Override
public java.lang.String getDefaultSchema() {
java.lang.Object ref = defaultSchema_;
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();
defaultSchema_ = s;
return s;
}
}
/**
* string default_schema = 3;
* @return The bytes for defaultSchema.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultSchemaBytes() {
java.lang.Object ref = defaultSchema_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultSchema_ = 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, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVc_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultVc_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultSchema_);
}
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, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVc_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultVc_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchema_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultSchema_);
}
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.AccountOuterClass.User)) {
return super.equals(obj);
}
cz.proto.AccountOuterClass.User other = (cz.proto.AccountOuterClass.User) obj;
if (hasUserId() != other.hasUserId()) return false;
if (hasUserId()) {
if (getUserId()
!= other.getUserId()) return false;
}
if (!getDefaultVc()
.equals(other.getDefaultVc())) return false;
if (!getDefaultSchema()
.equals(other.getDefaultSchema())) 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 (hasUserId()) {
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUserId());
}
hash = (37 * hash) + DEFAULT_VC_FIELD_NUMBER;
hash = (53 * hash) + getDefaultVc().hashCode();
hash = (37 * hash) + DEFAULT_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getDefaultSchema().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.AccountOuterClass.User parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.User parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.User 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.AccountOuterClass.User parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.AccountOuterClass.User parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.AccountOuterClass.User parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.User 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.AccountOuterClass.User parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.User 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.AccountOuterClass.User parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.AccountOuterClass.User 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.AccountOuterClass.User 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.User}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.User)
cz.proto.AccountOuterClass.UserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_User_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.AccountOuterClass.User.class, cz.proto.AccountOuterClass.User.Builder.class);
}
// Construct using cz.proto.AccountOuterClass.User.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();
userId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
defaultVc_ = "";
defaultSchema_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.AccountOuterClass.internal_static_cz_proto_User_descriptor;
}
@java.lang.Override
public cz.proto.AccountOuterClass.User getDefaultInstanceForType() {
return cz.proto.AccountOuterClass.User.getDefaultInstance();
}
@java.lang.Override
public cz.proto.AccountOuterClass.User build() {
cz.proto.AccountOuterClass.User result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.AccountOuterClass.User buildPartial() {
cz.proto.AccountOuterClass.User result = new cz.proto.AccountOuterClass.User(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.userId_ = userId_;
to_bitField0_ |= 0x00000001;
}
result.defaultVc_ = defaultVc_;
result.defaultSchema_ = defaultSchema_;
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 cz.proto.AccountOuterClass.User) {
return mergeFrom((cz.proto.AccountOuterClass.User)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.AccountOuterClass.User other) {
if (other == cz.proto.AccountOuterClass.User.getDefaultInstance()) return this;
if (other.hasUserId()) {
setUserId(other.getUserId());
}
if (!other.getDefaultVc().isEmpty()) {
defaultVc_ = other.defaultVc_;
onChanged();
}
if (!other.getDefaultSchema().isEmpty()) {
defaultSchema_ = other.defaultSchema_;
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 {
cz.proto.AccountOuterClass.User parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.AccountOuterClass.User) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long userId_ ;
/**
* optional int64 user_id = 1;
* @return Whether the userId field is set.
*/
@java.lang.Override
public boolean hasUserId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 user_id = 1;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
/**
* optional int64 user_id = 1;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(long value) {
bitField0_ |= 0x00000001;
userId_ = value;
onChanged();
return this;
}
/**
* optional int64 user_id = 1;
* @return This builder for chaining.
*/
public Builder clearUserId() {
bitField0_ = (bitField0_ & ~0x00000001);
userId_ = 0L;
onChanged();
return this;
}
private java.lang.Object defaultVc_ = "";
/**
* string default_vc = 2;
* @return The defaultVc.
*/
public java.lang.String getDefaultVc() {
java.lang.Object ref = defaultVc_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultVc_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string default_vc = 2;
* @return The bytes for defaultVc.
*/
public com.google.protobuf.ByteString
getDefaultVcBytes() {
java.lang.Object ref = defaultVc_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultVc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string default_vc = 2;
* @param value The defaultVc to set.
* @return This builder for chaining.
*/
public Builder setDefaultVc(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultVc_ = value;
onChanged();
return this;
}
/**
* string default_vc = 2;
* @return This builder for chaining.
*/
public Builder clearDefaultVc() {
defaultVc_ = getDefaultInstance().getDefaultVc();
onChanged();
return this;
}
/**
* string default_vc = 2;
* @param value The bytes for defaultVc to set.
* @return This builder for chaining.
*/
public Builder setDefaultVcBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultVc_ = value;
onChanged();
return this;
}
private java.lang.Object defaultSchema_ = "";
/**
* string default_schema = 3;
* @return The defaultSchema.
*/
public java.lang.String getDefaultSchema() {
java.lang.Object ref = defaultSchema_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultSchema_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string default_schema = 3;
* @return The bytes for defaultSchema.
*/
public com.google.protobuf.ByteString
getDefaultSchemaBytes() {
java.lang.Object ref = defaultSchema_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string default_schema = 3;
* @param value The defaultSchema to set.
* @return This builder for chaining.
*/
public Builder setDefaultSchema(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
defaultSchema_ = value;
onChanged();
return this;
}
/**
* string default_schema = 3;
* @return This builder for chaining.
*/
public Builder clearDefaultSchema() {
defaultSchema_ = getDefaultInstance().getDefaultSchema();
onChanged();
return this;
}
/**
* string default_schema = 3;
* @param value The bytes for defaultSchema to set.
* @return This builder for chaining.
*/
public Builder setDefaultSchemaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
defaultSchema_ = 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:cz.proto.User)
}
// @@protoc_insertion_point(class_scope:cz.proto.User)
private static final cz.proto.AccountOuterClass.User DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.AccountOuterClass.User();
}
public static cz.proto.AccountOuterClass.User getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public User parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new User(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.AccountOuterClass.User getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_PolicyStatement_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_PolicyStatement_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_Policy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_Policy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_Account_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_Account_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_Instance_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_Instance_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_UserIdentifier_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_UserIdentifier_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_User_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_User_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\raccount.proto\022\010cz.proto\032\027object_identi" +
"fier.proto\"V\n\017PolicyStatement\022\016\n\006Effect\030" +
"\001 \001(\t\022\021\n\tPrincipal\030\002 \003(\t\022\016\n\006Action\030\003 \003(\t" +
"\022\020\n\010Resource\030\004 \003(\t\"G\n\006Policy\022\017\n\007Version\030" +
"\001 \001(\t\022,\n\tStatement\030\002 \003(\0132\031.cz.proto.Poli" +
"cyStatement\"\250\001\n\007Account\022\022\n\naccount_id\030\001 " +
"\001(\003\022\021\n\tuser_name\030\002 \001(\t\022\017\n\007user_id\030\003 \001(\003\022" +
"*\n\004type\030\004 \001(\0162\027.cz.proto.PrincipalTypeH\000" +
"\210\001\001\022%\n\006policy\030\005 \001(\0132\020.cz.proto.PolicyH\001\210" +
"\001\001B\007\n\005_typeB\t\n\007_policy\"`\n\010Instance\022\024\n\014ac" +
"count_name\030\004 \001(\t\022\022\n\naccount_id\030\001 \001(\003\022\023\n\013" +
"instance_id\030\002 \001(\003\022\025\n\rinstance_name\030\003 \001(\t" +
"\"Q\n\016UserIdentifier\022.\n\nidentifier\030\001 \001(\0132\032" +
".cz.proto.ObjectIdentifier\022\017\n\007user_id\030\002 " +
"\001(\003\"T\n\004User\022\024\n\007user_id\030\001 \001(\003H\000\210\001\001\022\022\n\ndef" +
"ault_vc\030\002 \001(\t\022\026\n\016default_schema\030\003 \001(\tB\n\n" +
"\010_user_idb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
cz.proto.ObjectIdentifierOuterClass.getDescriptor(),
});
internal_static_cz_proto_PolicyStatement_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cz_proto_PolicyStatement_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_PolicyStatement_descriptor,
new java.lang.String[] { "Effect", "Principal", "Action", "Resource", });
internal_static_cz_proto_Policy_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cz_proto_Policy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_Policy_descriptor,
new java.lang.String[] { "Version", "Statement", });
internal_static_cz_proto_Account_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cz_proto_Account_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_Account_descriptor,
new java.lang.String[] { "AccountId", "UserName", "UserId", "Type", "Policy", "Type", "Policy", });
internal_static_cz_proto_Instance_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cz_proto_Instance_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_Instance_descriptor,
new java.lang.String[] { "AccountName", "AccountId", "InstanceId", "InstanceName", });
internal_static_cz_proto_UserIdentifier_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cz_proto_UserIdentifier_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_UserIdentifier_descriptor,
new java.lang.String[] { "Identifier", "UserId", });
internal_static_cz_proto_User_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_cz_proto_User_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_User_descriptor,
new java.lang.String[] { "UserId", "DefaultVc", "DefaultSchema", "UserId", });
cz.proto.ObjectIdentifierOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy