grpc.global_admin._GetEndpointsForAccountResponse 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._GetEndpointsForAccountResponse}
*/
public final class _GetEndpointsForAccountResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:global_admin._GetEndpointsForAccountResponse)
_GetEndpointsForAccountResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use _GetEndpointsForAccountResponse.newBuilder() to construct.
private _GetEndpointsForAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _GetEndpointsForAccountResponse() {
endpoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _GetEndpointsForAccountResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__GetEndpointsForAccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__GetEndpointsForAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.global_admin._GetEndpointsForAccountResponse.class, grpc.global_admin._GetEndpointsForAccountResponse.Builder.class);
}
public static final int ENDPOINTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List endpoints_;
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
@java.lang.Override
public java.util.List getEndpointsList() {
return endpoints_;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
@java.lang.Override
public java.util.List extends grpc.global_admin.EndpointOrBuilder>
getEndpointsOrBuilderList() {
return endpoints_;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
@java.lang.Override
public int getEndpointsCount() {
return endpoints_.size();
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
@java.lang.Override
public grpc.global_admin.Endpoint getEndpoints(int index) {
return endpoints_.get(index);
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
@java.lang.Override
public grpc.global_admin.EndpointOrBuilder getEndpointsOrBuilder(
int index) {
return endpoints_.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 {
for (int i = 0; i < endpoints_.size(); i++) {
output.writeMessage(1, endpoints_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < endpoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, endpoints_.get(i));
}
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._GetEndpointsForAccountResponse)) {
return super.equals(obj);
}
grpc.global_admin._GetEndpointsForAccountResponse other = (grpc.global_admin._GetEndpointsForAccountResponse) obj;
if (!getEndpointsList()
.equals(other.getEndpointsList())) 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();
if (getEndpointsCount() > 0) {
hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getEndpointsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.global_admin._GetEndpointsForAccountResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.global_admin._GetEndpointsForAccountResponse 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._GetEndpointsForAccountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.global_admin._GetEndpointsForAccountResponse 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._GetEndpointsForAccountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.global_admin._GetEndpointsForAccountResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.global_admin._GetEndpointsForAccountResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.global_admin._GetEndpointsForAccountResponse 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._GetEndpointsForAccountResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.global_admin._GetEndpointsForAccountResponse 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._GetEndpointsForAccountResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.global_admin._GetEndpointsForAccountResponse 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._GetEndpointsForAccountResponse 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._GetEndpointsForAccountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:global_admin._GetEndpointsForAccountResponse)
grpc.global_admin._GetEndpointsForAccountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__GetEndpointsForAccountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__GetEndpointsForAccountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.global_admin._GetEndpointsForAccountResponse.class, grpc.global_admin._GetEndpointsForAccountResponse.Builder.class);
}
// Construct using grpc.global_admin._GetEndpointsForAccountResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (endpointsBuilder_ == null) {
endpoints_ = java.util.Collections.emptyList();
} else {
endpoints_ = null;
endpointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.global_admin.GlobalAdminOuterClass.internal_static_global_admin__GetEndpointsForAccountResponse_descriptor;
}
@java.lang.Override
public grpc.global_admin._GetEndpointsForAccountResponse getDefaultInstanceForType() {
return grpc.global_admin._GetEndpointsForAccountResponse.getDefaultInstance();
}
@java.lang.Override
public grpc.global_admin._GetEndpointsForAccountResponse build() {
grpc.global_admin._GetEndpointsForAccountResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.global_admin._GetEndpointsForAccountResponse buildPartial() {
grpc.global_admin._GetEndpointsForAccountResponse result = new grpc.global_admin._GetEndpointsForAccountResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(grpc.global_admin._GetEndpointsForAccountResponse result) {
if (endpointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
endpoints_ = java.util.Collections.unmodifiableList(endpoints_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.endpoints_ = endpoints_;
} else {
result.endpoints_ = endpointsBuilder_.build();
}
}
private void buildPartial0(grpc.global_admin._GetEndpointsForAccountResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.global_admin._GetEndpointsForAccountResponse) {
return mergeFrom((grpc.global_admin._GetEndpointsForAccountResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.global_admin._GetEndpointsForAccountResponse other) {
if (other == grpc.global_admin._GetEndpointsForAccountResponse.getDefaultInstance()) return this;
if (endpointsBuilder_ == null) {
if (!other.endpoints_.isEmpty()) {
if (endpoints_.isEmpty()) {
endpoints_ = other.endpoints_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEndpointsIsMutable();
endpoints_.addAll(other.endpoints_);
}
onChanged();
}
} else {
if (!other.endpoints_.isEmpty()) {
if (endpointsBuilder_.isEmpty()) {
endpointsBuilder_.dispose();
endpointsBuilder_ = null;
endpoints_ = other.endpoints_;
bitField0_ = (bitField0_ & ~0x00000001);
endpointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEndpointsFieldBuilder() : null;
} else {
endpointsBuilder_.addAllMessages(other.endpoints_);
}
}
}
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: {
grpc.global_admin.Endpoint m =
input.readMessage(
grpc.global_admin.Endpoint.parser(),
extensionRegistry);
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.add(m);
} else {
endpointsBuilder_.addMessage(m);
}
break;
} // case 10
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.util.List endpoints_ =
java.util.Collections.emptyList();
private void ensureEndpointsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
endpoints_ = new java.util.ArrayList(endpoints_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
grpc.global_admin.Endpoint, grpc.global_admin.Endpoint.Builder, grpc.global_admin.EndpointOrBuilder> endpointsBuilder_;
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public java.util.List getEndpointsList() {
if (endpointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(endpoints_);
} else {
return endpointsBuilder_.getMessageList();
}
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public int getEndpointsCount() {
if (endpointsBuilder_ == null) {
return endpoints_.size();
} else {
return endpointsBuilder_.getCount();
}
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public grpc.global_admin.Endpoint getEndpoints(int index) {
if (endpointsBuilder_ == null) {
return endpoints_.get(index);
} else {
return endpointsBuilder_.getMessage(index);
}
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder setEndpoints(
int index, grpc.global_admin.Endpoint value) {
if (endpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.set(index, value);
onChanged();
} else {
endpointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder setEndpoints(
int index, grpc.global_admin.Endpoint.Builder builderForValue) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.set(index, builderForValue.build());
onChanged();
} else {
endpointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder addEndpoints(grpc.global_admin.Endpoint value) {
if (endpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.add(value);
onChanged();
} else {
endpointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder addEndpoints(
int index, grpc.global_admin.Endpoint value) {
if (endpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.add(index, value);
onChanged();
} else {
endpointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder addEndpoints(
grpc.global_admin.Endpoint.Builder builderForValue) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.add(builderForValue.build());
onChanged();
} else {
endpointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder addEndpoints(
int index, grpc.global_admin.Endpoint.Builder builderForValue) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.add(index, builderForValue.build());
onChanged();
} else {
endpointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder addAllEndpoints(
java.lang.Iterable extends grpc.global_admin.Endpoint> values) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endpoints_);
onChanged();
} else {
endpointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder clearEndpoints() {
if (endpointsBuilder_ == null) {
endpoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
endpointsBuilder_.clear();
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public Builder removeEndpoints(int index) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.remove(index);
onChanged();
} else {
endpointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public grpc.global_admin.Endpoint.Builder getEndpointsBuilder(
int index) {
return getEndpointsFieldBuilder().getBuilder(index);
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public grpc.global_admin.EndpointOrBuilder getEndpointsOrBuilder(
int index) {
if (endpointsBuilder_ == null) {
return endpoints_.get(index); } else {
return endpointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public java.util.List extends grpc.global_admin.EndpointOrBuilder>
getEndpointsOrBuilderList() {
if (endpointsBuilder_ != null) {
return endpointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(endpoints_);
}
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public grpc.global_admin.Endpoint.Builder addEndpointsBuilder() {
return getEndpointsFieldBuilder().addBuilder(
grpc.global_admin.Endpoint.getDefaultInstance());
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public grpc.global_admin.Endpoint.Builder addEndpointsBuilder(
int index) {
return getEndpointsFieldBuilder().addBuilder(
index, grpc.global_admin.Endpoint.getDefaultInstance());
}
/**
* repeated .global_admin.Endpoint endpoints = 1;
*/
public java.util.List
getEndpointsBuilderList() {
return getEndpointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
grpc.global_admin.Endpoint, grpc.global_admin.Endpoint.Builder, grpc.global_admin.EndpointOrBuilder>
getEndpointsFieldBuilder() {
if (endpointsBuilder_ == null) {
endpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
grpc.global_admin.Endpoint, grpc.global_admin.Endpoint.Builder, grpc.global_admin.EndpointOrBuilder>(
endpoints_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
endpoints_ = null;
}
return endpointsBuilder_;
}
@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._GetEndpointsForAccountResponse)
}
// @@protoc_insertion_point(class_scope:global_admin._GetEndpointsForAccountResponse)
private static final grpc.global_admin._GetEndpointsForAccountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.global_admin._GetEndpointsForAccountResponse();
}
public static grpc.global_admin._GetEndpointsForAccountResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_GetEndpointsForAccountResponse>
PARSER = new com.google.protobuf.AbstractParser<_GetEndpointsForAccountResponse>() {
@java.lang.Override
public _GetEndpointsForAccountResponse 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<_GetEndpointsForAccountResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_GetEndpointsForAccountResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.global_admin._GetEndpointsForAccountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}