grpc.global_admin._Invitation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos Show documentation
Show all versions of client-protos Show documentation
Java protobuf protocols that define the Momento gRPC wire format
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: global_admin.proto
package grpc.global_admin;
/**
* Protobuf type {@code global_admin._Invitation}
*/
public final class _Invitation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:global_admin._Invitation)
_InvitationOrBuilder {
private static final long serialVersionUID = 0L;
// Use _Invitation.newBuilder() to construct.
private _Invitation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _Invitation() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _Invitation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__Invitation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__Invitation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.global_admin._Invitation.class, grpc.global_admin._Invitation.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEMBER_FIELD_NUMBER = 2;
private grpc.global_admin._Member member_;
/**
* .global_admin._Member member = 2;
* @return Whether the member field is set.
*/
@java.lang.Override
public boolean hasMember() {
return member_ != null;
}
/**
* .global_admin._Member member = 2;
* @return The member.
*/
@java.lang.Override
public grpc.global_admin._Member getMember() {
return member_ == null ? grpc.global_admin._Member.getDefaultInstance() : member_;
}
/**
* .global_admin._Member member = 2;
*/
@java.lang.Override
public grpc.global_admin._MemberOrBuilder getMemberOrBuilder() {
return member_ == null ? grpc.global_admin._Member.getDefaultInstance() : member_;
}
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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (member_ != null) {
output.writeMessage(2, getMember());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (member_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMember());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.global_admin._Invitation)) {
return super.equals(obj);
}
grpc.global_admin._Invitation other = (grpc.global_admin._Invitation) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasMember() != other.hasMember()) return false;
if (hasMember()) {
if (!getMember()
.equals(other.getMember())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (hasMember()) {
hash = (37 * hash) + MEMBER_FIELD_NUMBER;
hash = (53 * hash) + getMember().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.global_admin._Invitation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.global_admin._Invitation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.global_admin._Invitation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.global_admin._Invitation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.global_admin._Invitation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.global_admin._Invitation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.global_admin._Invitation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.global_admin._Invitation 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 grpc.global_admin._Invitation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.global_admin._Invitation 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 grpc.global_admin._Invitation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.global_admin._Invitation 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(grpc.global_admin._Invitation 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 global_admin._Invitation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:global_admin._Invitation)
grpc.global_admin._InvitationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__Invitation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__Invitation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.global_admin._Invitation.class, grpc.global_admin._Invitation.Builder.class);
}
// Construct using grpc.global_admin._Invitation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
member_ = null;
if (memberBuilder_ != null) {
memberBuilder_.dispose();
memberBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__Invitation_descriptor;
}
@java.lang.Override
public grpc.global_admin._Invitation getDefaultInstanceForType() {
return grpc.global_admin._Invitation.getDefaultInstance();
}
@java.lang.Override
public grpc.global_admin._Invitation build() {
grpc.global_admin._Invitation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.global_admin._Invitation buildPartial() {
grpc.global_admin._Invitation result = new grpc.global_admin._Invitation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(grpc.global_admin._Invitation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.member_ = memberBuilder_ == null
? member_
: memberBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.global_admin._Invitation) {
return mergeFrom((grpc.global_admin._Invitation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.global_admin._Invitation other) {
if (other == grpc.global_admin._Invitation.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasMember()) {
mergeMember(other.getMember());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getMemberFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private grpc.global_admin._Member member_;
private com.google.protobuf.SingleFieldBuilderV3<
grpc.global_admin._Member, grpc.global_admin._Member.Builder, grpc.global_admin._MemberOrBuilder> memberBuilder_;
/**
* .global_admin._Member member = 2;
* @return Whether the member field is set.
*/
public boolean hasMember() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .global_admin._Member member = 2;
* @return The member.
*/
public grpc.global_admin._Member getMember() {
if (memberBuilder_ == null) {
return member_ == null ? grpc.global_admin._Member.getDefaultInstance() : member_;
} else {
return memberBuilder_.getMessage();
}
}
/**
* .global_admin._Member member = 2;
*/
public Builder setMember(grpc.global_admin._Member value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
member_ = value;
} else {
memberBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .global_admin._Member member = 2;
*/
public Builder setMember(
grpc.global_admin._Member.Builder builderForValue) {
if (memberBuilder_ == null) {
member_ = builderForValue.build();
} else {
memberBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .global_admin._Member member = 2;
*/
public Builder mergeMember(grpc.global_admin._Member value) {
if (memberBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
member_ != null &&
member_ != grpc.global_admin._Member.getDefaultInstance()) {
getMemberBuilder().mergeFrom(value);
} else {
member_ = value;
}
} else {
memberBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .global_admin._Member member = 2;
*/
public Builder clearMember() {
bitField0_ = (bitField0_ & ~0x00000002);
member_ = null;
if (memberBuilder_ != null) {
memberBuilder_.dispose();
memberBuilder_ = null;
}
onChanged();
return this;
}
/**
* .global_admin._Member member = 2;
*/
public grpc.global_admin._Member.Builder getMemberBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMemberFieldBuilder().getBuilder();
}
/**
* .global_admin._Member member = 2;
*/
public grpc.global_admin._MemberOrBuilder getMemberOrBuilder() {
if (memberBuilder_ != null) {
return memberBuilder_.getMessageOrBuilder();
} else {
return member_ == null ?
grpc.global_admin._Member.getDefaultInstance() : member_;
}
}
/**
* .global_admin._Member member = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
grpc.global_admin._Member, grpc.global_admin._Member.Builder, grpc.global_admin._MemberOrBuilder>
getMemberFieldBuilder() {
if (memberBuilder_ == null) {
memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
grpc.global_admin._Member, grpc.global_admin._Member.Builder, grpc.global_admin._MemberOrBuilder>(
getMember(),
getParentForChildren(),
isClean());
member_ = null;
}
return memberBuilder_;
}
@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:global_admin._Invitation)
}
// @@protoc_insertion_point(class_scope:global_admin._Invitation)
private static final grpc.global_admin._Invitation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.global_admin._Invitation();
}
public static grpc.global_admin._Invitation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_Invitation>
PARSER = new com.google.protobuf.AbstractParser<_Invitation>() {
@java.lang.Override
public _Invitation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<_Invitation> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_Invitation> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.global_admin._Invitation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}