shade.polaris.io.grpc.channelz.v1.Address Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/channelz/v1/channelz.proto
package io.grpc.channelz.v1;
/**
*
* Address represents the address used to create the socket.
*
*
* Protobuf type {@code grpc.channelz.v1.Address}
*/
public final class Address extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.channelz.v1.Address)
AddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use Address.newBuilder() to construct.
private Address(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Address() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Address();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.class, io.grpc.channelz.v1.Address.Builder.class);
}
public interface TcpIpAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.channelz.v1.Address.TcpIpAddress)
com.google.protobuf.MessageOrBuilder {
/**
*
* Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
* bytes in length.
*
*
* bytes ip_address = 1;
* @return The ipAddress.
*/
com.google.protobuf.ByteString getIpAddress();
/**
*
* 0-64k, or -1 if not appropriate.
*
*
* int32 port = 2;
* @return The port.
*/
int getPort();
}
/**
* Protobuf type {@code grpc.channelz.v1.Address.TcpIpAddress}
*/
public static final class TcpIpAddress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.channelz.v1.Address.TcpIpAddress)
TcpIpAddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use TcpIpAddress.newBuilder() to construct.
private TcpIpAddress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TcpIpAddress() {
ipAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TcpIpAddress();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_TcpIpAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_TcpIpAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.TcpIpAddress.class, io.grpc.channelz.v1.Address.TcpIpAddress.Builder.class);
}
public static final int IP_ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
* bytes in length.
*
*
* bytes ip_address = 1;
* @return The ipAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIpAddress() {
return ipAddress_;
}
public static final int PORT_FIELD_NUMBER = 2;
private int port_ = 0;
/**
*
* 0-64k, or -1 if not appropriate.
*
*
* int32 port = 2;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
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 (!ipAddress_.isEmpty()) {
output.writeBytes(1, ipAddress_);
}
if (port_ != 0) {
output.writeInt32(2, port_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!ipAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, ipAddress_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, port_);
}
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 io.grpc.channelz.v1.Address.TcpIpAddress)) {
return super.equals(obj);
}
io.grpc.channelz.v1.Address.TcpIpAddress other = (io.grpc.channelz.v1.Address.TcpIpAddress) obj;
if (!getIpAddress()
.equals(other.getIpAddress())) return false;
if (getPort()
!= other.getPort()) 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) + IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getIpAddress().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress 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 io.grpc.channelz.v1.Address.TcpIpAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress 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 io.grpc.channelz.v1.Address.TcpIpAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.TcpIpAddress 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(io.grpc.channelz.v1.Address.TcpIpAddress 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 grpc.channelz.v1.Address.TcpIpAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Address.TcpIpAddress)
io.grpc.channelz.v1.Address.TcpIpAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_TcpIpAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_TcpIpAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.TcpIpAddress.class, io.grpc.channelz.v1.Address.TcpIpAddress.Builder.class);
}
// Construct using io.grpc.channelz.v1.Address.TcpIpAddress.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ipAddress_ = com.google.protobuf.ByteString.EMPTY;
port_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_TcpIpAddress_descriptor;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddress getDefaultInstanceForType() {
return io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance();
}
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddress build() {
io.grpc.channelz.v1.Address.TcpIpAddress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddress buildPartial() {
io.grpc.channelz.v1.Address.TcpIpAddress result = new io.grpc.channelz.v1.Address.TcpIpAddress(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.grpc.channelz.v1.Address.TcpIpAddress result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ipAddress_ = ipAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.port_ = port_;
}
}
@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 io.grpc.channelz.v1.Address.TcpIpAddress) {
return mergeFrom((io.grpc.channelz.v1.Address.TcpIpAddress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.channelz.v1.Address.TcpIpAddress other) {
if (other == io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance()) return this;
if (other.getIpAddress() != com.google.protobuf.ByteString.EMPTY) {
setIpAddress(other.getIpAddress());
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
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: {
ipAddress_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
port_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
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 com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
* bytes in length.
*
*
* bytes ip_address = 1;
* @return The ipAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIpAddress() {
return ipAddress_;
}
/**
*
* Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
* bytes in length.
*
*
* bytes ip_address = 1;
* @param value The ipAddress to set.
* @return This builder for chaining.
*/
public Builder setIpAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ipAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
* bytes in length.
*
*
* bytes ip_address = 1;
* @return This builder for chaining.
*/
public Builder clearIpAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
ipAddress_ = getDefaultInstance().getIpAddress();
onChanged();
return this;
}
private int port_ ;
/**
*
* 0-64k, or -1 if not appropriate.
*
*
* int32 port = 2;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
*
* 0-64k, or -1 if not appropriate.
*
*
* int32 port = 2;
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* 0-64k, or -1 if not appropriate.
*
*
* int32 port = 2;
* @return This builder for chaining.
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.channelz.v1.Address.TcpIpAddress)
}
// @@protoc_insertion_point(class_scope:grpc.channelz.v1.Address.TcpIpAddress)
private static final io.grpc.channelz.v1.Address.TcpIpAddress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.channelz.v1.Address.TcpIpAddress();
}
public static io.grpc.channelz.v1.Address.TcpIpAddress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TcpIpAddress 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UdsAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.channelz.v1.Address.UdsAddress)
com.google.protobuf.MessageOrBuilder {
/**
* string filename = 1;
* @return The filename.
*/
java.lang.String getFilename();
/**
* string filename = 1;
* @return The bytes for filename.
*/
com.google.protobuf.ByteString
getFilenameBytes();
}
/**
*
* A Unix Domain Socket address.
*
*
* Protobuf type {@code grpc.channelz.v1.Address.UdsAddress}
*/
public static final class UdsAddress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.channelz.v1.Address.UdsAddress)
UdsAddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use UdsAddress.newBuilder() to construct.
private UdsAddress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UdsAddress() {
filename_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UdsAddress();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_UdsAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_UdsAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.UdsAddress.class, io.grpc.channelz.v1.Address.UdsAddress.Builder.class);
}
public static final int FILENAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object filename_ = "";
/**
* string filename = 1;
* @return The filename.
*/
@java.lang.Override
public java.lang.String getFilename() {
java.lang.Object ref = filename_;
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();
filename_ = s;
return s;
}
}
/**
* string filename = 1;
* @return The bytes for filename.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilenameBytes() {
java.lang.Object ref = filename_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filename_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filename_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filename_);
}
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(filename_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filename_);
}
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 io.grpc.channelz.v1.Address.UdsAddress)) {
return super.equals(obj);
}
io.grpc.channelz.v1.Address.UdsAddress other = (io.grpc.channelz.v1.Address.UdsAddress) obj;
if (!getFilename()
.equals(other.getFilename())) 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) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFilename().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.channelz.v1.Address.UdsAddress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.UdsAddress parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.UdsAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.UdsAddress parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.UdsAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.UdsAddress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.UdsAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.UdsAddress 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 io.grpc.channelz.v1.Address.UdsAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.UdsAddress 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 io.grpc.channelz.v1.Address.UdsAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.UdsAddress 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(io.grpc.channelz.v1.Address.UdsAddress 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;
}
/**
*
* A Unix Domain Socket address.
*
*
* Protobuf type {@code grpc.channelz.v1.Address.UdsAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Address.UdsAddress)
io.grpc.channelz.v1.Address.UdsAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_UdsAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_UdsAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.UdsAddress.class, io.grpc.channelz.v1.Address.UdsAddress.Builder.class);
}
// Construct using io.grpc.channelz.v1.Address.UdsAddress.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
filename_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_UdsAddress_descriptor;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddress getDefaultInstanceForType() {
return io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance();
}
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddress build() {
io.grpc.channelz.v1.Address.UdsAddress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddress buildPartial() {
io.grpc.channelz.v1.Address.UdsAddress result = new io.grpc.channelz.v1.Address.UdsAddress(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.grpc.channelz.v1.Address.UdsAddress result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.filename_ = filename_;
}
}
@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 io.grpc.channelz.v1.Address.UdsAddress) {
return mergeFrom((io.grpc.channelz.v1.Address.UdsAddress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.channelz.v1.Address.UdsAddress other) {
if (other == io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance()) return this;
if (!other.getFilename().isEmpty()) {
filename_ = other.filename_;
bitField0_ |= 0x00000001;
onChanged();
}
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: {
filename_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
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.lang.Object filename_ = "";
/**
* string filename = 1;
* @return The filename.
*/
public java.lang.String getFilename() {
java.lang.Object ref = filename_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filename_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string filename = 1;
* @return The bytes for filename.
*/
public com.google.protobuf.ByteString
getFilenameBytes() {
java.lang.Object ref = filename_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string filename = 1;
* @param value The filename to set.
* @return This builder for chaining.
*/
public Builder setFilename(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
filename_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string filename = 1;
* @return This builder for chaining.
*/
public Builder clearFilename() {
filename_ = getDefaultInstance().getFilename();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string filename = 1;
* @param value The bytes for filename to set.
* @return This builder for chaining.
*/
public Builder setFilenameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
filename_ = value;
bitField0_ |= 0x00000001;
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:grpc.channelz.v1.Address.UdsAddress)
}
// @@protoc_insertion_point(class_scope:grpc.channelz.v1.Address.UdsAddress)
private static final io.grpc.channelz.v1.Address.UdsAddress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.channelz.v1.Address.UdsAddress();
}
public static io.grpc.channelz.v1.Address.UdsAddress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UdsAddress 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OtherAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.channelz.v1.Address.OtherAddress)
com.google.protobuf.MessageOrBuilder {
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
* @return The value.
*/
com.google.protobuf.Any getValue();
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
com.google.protobuf.AnyOrBuilder getValueOrBuilder();
}
/**
*
* An address type not included above.
*
*
* Protobuf type {@code grpc.channelz.v1.Address.OtherAddress}
*/
public static final class OtherAddress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.channelz.v1.Address.OtherAddress)
OtherAddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use OtherAddress.newBuilder() to construct.
private OtherAddress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OtherAddress() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OtherAddress();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_OtherAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_OtherAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.OtherAddress.class, io.grpc.channelz.v1.Address.OtherAddress.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.Any value_;
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.Any getValue() {
return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_;
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getValue());
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
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 io.grpc.channelz.v1.Address.OtherAddress)) {
return super.equals(obj);
}
io.grpc.channelz.v1.Address.OtherAddress other = (io.grpc.channelz.v1.Address.OtherAddress) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.channelz.v1.Address.OtherAddress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.OtherAddress parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.OtherAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.OtherAddress parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.OtherAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address.OtherAddress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address.OtherAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.OtherAddress 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 io.grpc.channelz.v1.Address.OtherAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.OtherAddress 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 io.grpc.channelz.v1.Address.OtherAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address.OtherAddress 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(io.grpc.channelz.v1.Address.OtherAddress 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;
}
/**
*
* An address type not included above.
*
*
* Protobuf type {@code grpc.channelz.v1.Address.OtherAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Address.OtherAddress)
io.grpc.channelz.v1.Address.OtherAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_OtherAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_OtherAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.OtherAddress.class, io.grpc.channelz.v1.Address.OtherAddress.Builder.class);
}
// Construct using io.grpc.channelz.v1.Address.OtherAddress.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_OtherAddress_descriptor;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddress getDefaultInstanceForType() {
return io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance();
}
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddress build() {
io.grpc.channelz.v1.Address.OtherAddress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddress buildPartial() {
io.grpc.channelz.v1.Address.OtherAddress result = new io.grpc.channelz.v1.Address.OtherAddress(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.grpc.channelz.v1.Address.OtherAddress result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.grpc.channelz.v1.Address.OtherAddress) {
return mergeFrom((io.grpc.channelz.v1.Address.OtherAddress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.channelz.v1.Address.OtherAddress other) {
if (other == io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
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: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getValueFieldBuilder().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 name_ = "";
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The human readable version of the value. This value should be set.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Any value_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_;
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
* @return The value.
*/
public com.google.protobuf.Any getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
public Builder setValue(com.google.protobuf.Any value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
public Builder setValue(
com.google.protobuf.Any.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
public Builder mergeValue(com.google.protobuf.Any value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != com.google.protobuf.Any.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
public com.google.protobuf.Any.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.google.protobuf.Any.getDefaultInstance() : value_;
}
}
/**
*
* The actual address message.
*
*
* .google.protobuf.Any value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@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:grpc.channelz.v1.Address.OtherAddress)
}
// @@protoc_insertion_point(class_scope:grpc.channelz.v1.Address.OtherAddress)
private static final io.grpc.channelz.v1.Address.OtherAddress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.channelz.v1.Address.OtherAddress();
}
public static io.grpc.channelz.v1.Address.OtherAddress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OtherAddress 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int addressCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object address_;
public enum AddressCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TCPIP_ADDRESS(1),
UDS_ADDRESS(2),
OTHER_ADDRESS(3),
ADDRESS_NOT_SET(0);
private final int value;
private AddressCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AddressCase valueOf(int value) {
return forNumber(value);
}
public static AddressCase forNumber(int value) {
switch (value) {
case 1: return TCPIP_ADDRESS;
case 2: return UDS_ADDRESS;
case 3: return OTHER_ADDRESS;
case 0: return ADDRESS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public AddressCase
getAddressCase() {
return AddressCase.forNumber(
addressCase_);
}
public static final int TCPIP_ADDRESS_FIELD_NUMBER = 1;
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
* @return Whether the tcpipAddress field is set.
*/
@java.lang.Override
public boolean hasTcpipAddress() {
return addressCase_ == 1;
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
* @return The tcpipAddress.
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddress getTcpipAddress() {
if (addressCase_ == 1) {
return (io.grpc.channelz.v1.Address.TcpIpAddress) address_;
}
return io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance();
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddressOrBuilder getTcpipAddressOrBuilder() {
if (addressCase_ == 1) {
return (io.grpc.channelz.v1.Address.TcpIpAddress) address_;
}
return io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance();
}
public static final int UDS_ADDRESS_FIELD_NUMBER = 2;
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
* @return Whether the udsAddress field is set.
*/
@java.lang.Override
public boolean hasUdsAddress() {
return addressCase_ == 2;
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
* @return The udsAddress.
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddress getUdsAddress() {
if (addressCase_ == 2) {
return (io.grpc.channelz.v1.Address.UdsAddress) address_;
}
return io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance();
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddressOrBuilder getUdsAddressOrBuilder() {
if (addressCase_ == 2) {
return (io.grpc.channelz.v1.Address.UdsAddress) address_;
}
return io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance();
}
public static final int OTHER_ADDRESS_FIELD_NUMBER = 3;
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
* @return Whether the otherAddress field is set.
*/
@java.lang.Override
public boolean hasOtherAddress() {
return addressCase_ == 3;
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
* @return The otherAddress.
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddress getOtherAddress() {
if (addressCase_ == 3) {
return (io.grpc.channelz.v1.Address.OtherAddress) address_;
}
return io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance();
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddressOrBuilder getOtherAddressOrBuilder() {
if (addressCase_ == 3) {
return (io.grpc.channelz.v1.Address.OtherAddress) address_;
}
return io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance();
}
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 (addressCase_ == 1) {
output.writeMessage(1, (io.grpc.channelz.v1.Address.TcpIpAddress) address_);
}
if (addressCase_ == 2) {
output.writeMessage(2, (io.grpc.channelz.v1.Address.UdsAddress) address_);
}
if (addressCase_ == 3) {
output.writeMessage(3, (io.grpc.channelz.v1.Address.OtherAddress) address_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (addressCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.grpc.channelz.v1.Address.TcpIpAddress) address_);
}
if (addressCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.grpc.channelz.v1.Address.UdsAddress) address_);
}
if (addressCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.grpc.channelz.v1.Address.OtherAddress) address_);
}
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 io.grpc.channelz.v1.Address)) {
return super.equals(obj);
}
io.grpc.channelz.v1.Address other = (io.grpc.channelz.v1.Address) obj;
if (!getAddressCase().equals(other.getAddressCase())) return false;
switch (addressCase_) {
case 1:
if (!getTcpipAddress()
.equals(other.getTcpipAddress())) return false;
break;
case 2:
if (!getUdsAddress()
.equals(other.getUdsAddress())) return false;
break;
case 3:
if (!getOtherAddress()
.equals(other.getOtherAddress())) return false;
break;
case 0:
default:
}
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();
switch (addressCase_) {
case 1:
hash = (37 * hash) + TCPIP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getTcpipAddress().hashCode();
break;
case 2:
hash = (37 * hash) + UDS_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getUdsAddress().hashCode();
break;
case 3:
hash = (37 * hash) + OTHER_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getOtherAddress().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.channelz.v1.Address parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Address parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Address parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address 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 io.grpc.channelz.v1.Address parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address 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 io.grpc.channelz.v1.Address parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Address 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(io.grpc.channelz.v1.Address 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;
}
/**
*
* Address represents the address used to create the socket.
*
*
* Protobuf type {@code grpc.channelz.v1.Address}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Address)
io.grpc.channelz.v1.AddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Address.class, io.grpc.channelz.v1.Address.Builder.class);
}
// Construct using io.grpc.channelz.v1.Address.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (tcpipAddressBuilder_ != null) {
tcpipAddressBuilder_.clear();
}
if (udsAddressBuilder_ != null) {
udsAddressBuilder_.clear();
}
if (otherAddressBuilder_ != null) {
otherAddressBuilder_.clear();
}
addressCase_ = 0;
address_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Address_descriptor;
}
@java.lang.Override
public io.grpc.channelz.v1.Address getDefaultInstanceForType() {
return io.grpc.channelz.v1.Address.getDefaultInstance();
}
@java.lang.Override
public io.grpc.channelz.v1.Address build() {
io.grpc.channelz.v1.Address result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.channelz.v1.Address buildPartial() {
io.grpc.channelz.v1.Address result = new io.grpc.channelz.v1.Address(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.grpc.channelz.v1.Address result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.grpc.channelz.v1.Address result) {
result.addressCase_ = addressCase_;
result.address_ = this.address_;
if (addressCase_ == 1 &&
tcpipAddressBuilder_ != null) {
result.address_ = tcpipAddressBuilder_.build();
}
if (addressCase_ == 2 &&
udsAddressBuilder_ != null) {
result.address_ = udsAddressBuilder_.build();
}
if (addressCase_ == 3 &&
otherAddressBuilder_ != null) {
result.address_ = otherAddressBuilder_.build();
}
}
@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 io.grpc.channelz.v1.Address) {
return mergeFrom((io.grpc.channelz.v1.Address)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.channelz.v1.Address other) {
if (other == io.grpc.channelz.v1.Address.getDefaultInstance()) return this;
switch (other.getAddressCase()) {
case TCPIP_ADDRESS: {
mergeTcpipAddress(other.getTcpipAddress());
break;
}
case UDS_ADDRESS: {
mergeUdsAddress(other.getUdsAddress());
break;
}
case OTHER_ADDRESS: {
mergeOtherAddress(other.getOtherAddress());
break;
}
case ADDRESS_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getTcpipAddressFieldBuilder().getBuilder(),
extensionRegistry);
addressCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getUdsAddressFieldBuilder().getBuilder(),
extensionRegistry);
addressCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getOtherAddressFieldBuilder().getBuilder(),
extensionRegistry);
addressCase_ = 3;
break;
} // case 26
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 addressCase_ = 0;
private java.lang.Object address_;
public AddressCase
getAddressCase() {
return AddressCase.forNumber(
addressCase_);
}
public Builder clearAddress() {
addressCase_ = 0;
address_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.TcpIpAddress, io.grpc.channelz.v1.Address.TcpIpAddress.Builder, io.grpc.channelz.v1.Address.TcpIpAddressOrBuilder> tcpipAddressBuilder_;
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
* @return Whether the tcpipAddress field is set.
*/
@java.lang.Override
public boolean hasTcpipAddress() {
return addressCase_ == 1;
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
* @return The tcpipAddress.
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddress getTcpipAddress() {
if (tcpipAddressBuilder_ == null) {
if (addressCase_ == 1) {
return (io.grpc.channelz.v1.Address.TcpIpAddress) address_;
}
return io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance();
} else {
if (addressCase_ == 1) {
return tcpipAddressBuilder_.getMessage();
}
return io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance();
}
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
public Builder setTcpipAddress(io.grpc.channelz.v1.Address.TcpIpAddress value) {
if (tcpipAddressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
} else {
tcpipAddressBuilder_.setMessage(value);
}
addressCase_ = 1;
return this;
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
public Builder setTcpipAddress(
io.grpc.channelz.v1.Address.TcpIpAddress.Builder builderForValue) {
if (tcpipAddressBuilder_ == null) {
address_ = builderForValue.build();
onChanged();
} else {
tcpipAddressBuilder_.setMessage(builderForValue.build());
}
addressCase_ = 1;
return this;
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
public Builder mergeTcpipAddress(io.grpc.channelz.v1.Address.TcpIpAddress value) {
if (tcpipAddressBuilder_ == null) {
if (addressCase_ == 1 &&
address_ != io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance()) {
address_ = io.grpc.channelz.v1.Address.TcpIpAddress.newBuilder((io.grpc.channelz.v1.Address.TcpIpAddress) address_)
.mergeFrom(value).buildPartial();
} else {
address_ = value;
}
onChanged();
} else {
if (addressCase_ == 1) {
tcpipAddressBuilder_.mergeFrom(value);
} else {
tcpipAddressBuilder_.setMessage(value);
}
}
addressCase_ = 1;
return this;
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
public Builder clearTcpipAddress() {
if (tcpipAddressBuilder_ == null) {
if (addressCase_ == 1) {
addressCase_ = 0;
address_ = null;
onChanged();
}
} else {
if (addressCase_ == 1) {
addressCase_ = 0;
address_ = null;
}
tcpipAddressBuilder_.clear();
}
return this;
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
public io.grpc.channelz.v1.Address.TcpIpAddress.Builder getTcpipAddressBuilder() {
return getTcpipAddressFieldBuilder().getBuilder();
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.TcpIpAddressOrBuilder getTcpipAddressOrBuilder() {
if ((addressCase_ == 1) && (tcpipAddressBuilder_ != null)) {
return tcpipAddressBuilder_.getMessageOrBuilder();
} else {
if (addressCase_ == 1) {
return (io.grpc.channelz.v1.Address.TcpIpAddress) address_;
}
return io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance();
}
}
/**
* .grpc.channelz.v1.Address.TcpIpAddress tcpip_address = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.TcpIpAddress, io.grpc.channelz.v1.Address.TcpIpAddress.Builder, io.grpc.channelz.v1.Address.TcpIpAddressOrBuilder>
getTcpipAddressFieldBuilder() {
if (tcpipAddressBuilder_ == null) {
if (!(addressCase_ == 1)) {
address_ = io.grpc.channelz.v1.Address.TcpIpAddress.getDefaultInstance();
}
tcpipAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.TcpIpAddress, io.grpc.channelz.v1.Address.TcpIpAddress.Builder, io.grpc.channelz.v1.Address.TcpIpAddressOrBuilder>(
(io.grpc.channelz.v1.Address.TcpIpAddress) address_,
getParentForChildren(),
isClean());
address_ = null;
}
addressCase_ = 1;
onChanged();
return tcpipAddressBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.UdsAddress, io.grpc.channelz.v1.Address.UdsAddress.Builder, io.grpc.channelz.v1.Address.UdsAddressOrBuilder> udsAddressBuilder_;
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
* @return Whether the udsAddress field is set.
*/
@java.lang.Override
public boolean hasUdsAddress() {
return addressCase_ == 2;
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
* @return The udsAddress.
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddress getUdsAddress() {
if (udsAddressBuilder_ == null) {
if (addressCase_ == 2) {
return (io.grpc.channelz.v1.Address.UdsAddress) address_;
}
return io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance();
} else {
if (addressCase_ == 2) {
return udsAddressBuilder_.getMessage();
}
return io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance();
}
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
public Builder setUdsAddress(io.grpc.channelz.v1.Address.UdsAddress value) {
if (udsAddressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
} else {
udsAddressBuilder_.setMessage(value);
}
addressCase_ = 2;
return this;
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
public Builder setUdsAddress(
io.grpc.channelz.v1.Address.UdsAddress.Builder builderForValue) {
if (udsAddressBuilder_ == null) {
address_ = builderForValue.build();
onChanged();
} else {
udsAddressBuilder_.setMessage(builderForValue.build());
}
addressCase_ = 2;
return this;
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
public Builder mergeUdsAddress(io.grpc.channelz.v1.Address.UdsAddress value) {
if (udsAddressBuilder_ == null) {
if (addressCase_ == 2 &&
address_ != io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance()) {
address_ = io.grpc.channelz.v1.Address.UdsAddress.newBuilder((io.grpc.channelz.v1.Address.UdsAddress) address_)
.mergeFrom(value).buildPartial();
} else {
address_ = value;
}
onChanged();
} else {
if (addressCase_ == 2) {
udsAddressBuilder_.mergeFrom(value);
} else {
udsAddressBuilder_.setMessage(value);
}
}
addressCase_ = 2;
return this;
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
public Builder clearUdsAddress() {
if (udsAddressBuilder_ == null) {
if (addressCase_ == 2) {
addressCase_ = 0;
address_ = null;
onChanged();
}
} else {
if (addressCase_ == 2) {
addressCase_ = 0;
address_ = null;
}
udsAddressBuilder_.clear();
}
return this;
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
public io.grpc.channelz.v1.Address.UdsAddress.Builder getUdsAddressBuilder() {
return getUdsAddressFieldBuilder().getBuilder();
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.UdsAddressOrBuilder getUdsAddressOrBuilder() {
if ((addressCase_ == 2) && (udsAddressBuilder_ != null)) {
return udsAddressBuilder_.getMessageOrBuilder();
} else {
if (addressCase_ == 2) {
return (io.grpc.channelz.v1.Address.UdsAddress) address_;
}
return io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance();
}
}
/**
* .grpc.channelz.v1.Address.UdsAddress uds_address = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.UdsAddress, io.grpc.channelz.v1.Address.UdsAddress.Builder, io.grpc.channelz.v1.Address.UdsAddressOrBuilder>
getUdsAddressFieldBuilder() {
if (udsAddressBuilder_ == null) {
if (!(addressCase_ == 2)) {
address_ = io.grpc.channelz.v1.Address.UdsAddress.getDefaultInstance();
}
udsAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.UdsAddress, io.grpc.channelz.v1.Address.UdsAddress.Builder, io.grpc.channelz.v1.Address.UdsAddressOrBuilder>(
(io.grpc.channelz.v1.Address.UdsAddress) address_,
getParentForChildren(),
isClean());
address_ = null;
}
addressCase_ = 2;
onChanged();
return udsAddressBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.OtherAddress, io.grpc.channelz.v1.Address.OtherAddress.Builder, io.grpc.channelz.v1.Address.OtherAddressOrBuilder> otherAddressBuilder_;
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
* @return Whether the otherAddress field is set.
*/
@java.lang.Override
public boolean hasOtherAddress() {
return addressCase_ == 3;
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
* @return The otherAddress.
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddress getOtherAddress() {
if (otherAddressBuilder_ == null) {
if (addressCase_ == 3) {
return (io.grpc.channelz.v1.Address.OtherAddress) address_;
}
return io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance();
} else {
if (addressCase_ == 3) {
return otherAddressBuilder_.getMessage();
}
return io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance();
}
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
public Builder setOtherAddress(io.grpc.channelz.v1.Address.OtherAddress value) {
if (otherAddressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
} else {
otherAddressBuilder_.setMessage(value);
}
addressCase_ = 3;
return this;
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
public Builder setOtherAddress(
io.grpc.channelz.v1.Address.OtherAddress.Builder builderForValue) {
if (otherAddressBuilder_ == null) {
address_ = builderForValue.build();
onChanged();
} else {
otherAddressBuilder_.setMessage(builderForValue.build());
}
addressCase_ = 3;
return this;
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
public Builder mergeOtherAddress(io.grpc.channelz.v1.Address.OtherAddress value) {
if (otherAddressBuilder_ == null) {
if (addressCase_ == 3 &&
address_ != io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance()) {
address_ = io.grpc.channelz.v1.Address.OtherAddress.newBuilder((io.grpc.channelz.v1.Address.OtherAddress) address_)
.mergeFrom(value).buildPartial();
} else {
address_ = value;
}
onChanged();
} else {
if (addressCase_ == 3) {
otherAddressBuilder_.mergeFrom(value);
} else {
otherAddressBuilder_.setMessage(value);
}
}
addressCase_ = 3;
return this;
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
public Builder clearOtherAddress() {
if (otherAddressBuilder_ == null) {
if (addressCase_ == 3) {
addressCase_ = 0;
address_ = null;
onChanged();
}
} else {
if (addressCase_ == 3) {
addressCase_ = 0;
address_ = null;
}
otherAddressBuilder_.clear();
}
return this;
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
public io.grpc.channelz.v1.Address.OtherAddress.Builder getOtherAddressBuilder() {
return getOtherAddressFieldBuilder().getBuilder();
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
@java.lang.Override
public io.grpc.channelz.v1.Address.OtherAddressOrBuilder getOtherAddressOrBuilder() {
if ((addressCase_ == 3) && (otherAddressBuilder_ != null)) {
return otherAddressBuilder_.getMessageOrBuilder();
} else {
if (addressCase_ == 3) {
return (io.grpc.channelz.v1.Address.OtherAddress) address_;
}
return io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance();
}
}
/**
* .grpc.channelz.v1.Address.OtherAddress other_address = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.OtherAddress, io.grpc.channelz.v1.Address.OtherAddress.Builder, io.grpc.channelz.v1.Address.OtherAddressOrBuilder>
getOtherAddressFieldBuilder() {
if (otherAddressBuilder_ == null) {
if (!(addressCase_ == 3)) {
address_ = io.grpc.channelz.v1.Address.OtherAddress.getDefaultInstance();
}
otherAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.Address.OtherAddress, io.grpc.channelz.v1.Address.OtherAddress.Builder, io.grpc.channelz.v1.Address.OtherAddressOrBuilder>(
(io.grpc.channelz.v1.Address.OtherAddress) address_,
getParentForChildren(),
isClean());
address_ = null;
}
addressCase_ = 3;
onChanged();
return otherAddressBuilder_;
}
@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:grpc.channelz.v1.Address)
}
// @@protoc_insertion_point(class_scope:grpc.channelz.v1.Address)
private static final io.grpc.channelz.v1.Address DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.channelz.v1.Address();
}
public static io.grpc.channelz.v1.Address getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Address 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.grpc.channelz.v1.Address getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy