![JAR search and dependency download from the Maven repository](/logo.png)
xds.annotations.v3.Migrate Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xds/annotations/v3/migrate.proto
// Protobuf Java Version: 3.25.5
package xds.annotations.v3;
public final class Migrate {
private Migrate() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(xds.annotations.v3.Migrate.messageMigrate);
registry.add(xds.annotations.v3.Migrate.fieldMigrate);
registry.add(xds.annotations.v3.Migrate.enumMigrate);
registry.add(xds.annotations.v3.Migrate.enumValueMigrate);
registry.add(xds.annotations.v3.Migrate.fileMigrate);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface MigrateAnnotationOrBuilder extends
// @@protoc_insertion_point(interface_extends:xds.annotations.v3.MigrateAnnotation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @return The rename.
*/
java.lang.String getRename();
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @return The bytes for rename.
*/
com.google.protobuf.ByteString
getRenameBytes();
}
/**
* Protobuf type {@code xds.annotations.v3.MigrateAnnotation}
*/
public static final class MigrateAnnotation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xds.annotations.v3.MigrateAnnotation)
MigrateAnnotationOrBuilder {
private static final long serialVersionUID = 0L;
// Use MigrateAnnotation.newBuilder() to construct.
private MigrateAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MigrateAnnotation() {
rename_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MigrateAnnotation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_MigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_MigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xds.annotations.v3.Migrate.MigrateAnnotation.class, xds.annotations.v3.Migrate.MigrateAnnotation.Builder.class);
}
public static final int RENAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object rename_ = "";
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @return The rename.
*/
@java.lang.Override
public java.lang.String getRename() {
java.lang.Object ref = rename_;
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();
rename_ = s;
return s;
}
}
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @return The bytes for rename.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRenameBytes() {
java.lang.Object ref = rename_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rename_ = 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(rename_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rename_);
}
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(rename_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rename_);
}
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 xds.annotations.v3.Migrate.MigrateAnnotation)) {
return super.equals(obj);
}
xds.annotations.v3.Migrate.MigrateAnnotation other = (xds.annotations.v3.Migrate.MigrateAnnotation) obj;
if (!getRename()
.equals(other.getRename())) 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) + RENAME_FIELD_NUMBER;
hash = (53 * hash) + getRename().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation 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 xds.annotations.v3.Migrate.MigrateAnnotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation 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 xds.annotations.v3.Migrate.MigrateAnnotation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.MigrateAnnotation 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(xds.annotations.v3.Migrate.MigrateAnnotation 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 xds.annotations.v3.MigrateAnnotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xds.annotations.v3.MigrateAnnotation)
xds.annotations.v3.Migrate.MigrateAnnotationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_MigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_MigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xds.annotations.v3.Migrate.MigrateAnnotation.class, xds.annotations.v3.Migrate.MigrateAnnotation.Builder.class);
}
// Construct using xds.annotations.v3.Migrate.MigrateAnnotation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rename_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_MigrateAnnotation_descriptor;
}
@java.lang.Override
public xds.annotations.v3.Migrate.MigrateAnnotation getDefaultInstanceForType() {
return xds.annotations.v3.Migrate.MigrateAnnotation.getDefaultInstance();
}
@java.lang.Override
public xds.annotations.v3.Migrate.MigrateAnnotation build() {
xds.annotations.v3.Migrate.MigrateAnnotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xds.annotations.v3.Migrate.MigrateAnnotation buildPartial() {
xds.annotations.v3.Migrate.MigrateAnnotation result = new xds.annotations.v3.Migrate.MigrateAnnotation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(xds.annotations.v3.Migrate.MigrateAnnotation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rename_ = rename_;
}
}
@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 xds.annotations.v3.Migrate.MigrateAnnotation) {
return mergeFrom((xds.annotations.v3.Migrate.MigrateAnnotation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xds.annotations.v3.Migrate.MigrateAnnotation other) {
if (other == xds.annotations.v3.Migrate.MigrateAnnotation.getDefaultInstance()) return this;
if (!other.getRename().isEmpty()) {
rename_ = other.rename_;
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: {
rename_ = 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 rename_ = "";
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @return The rename.
*/
public java.lang.String getRename() {
java.lang.Object ref = rename_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rename_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @return The bytes for rename.
*/
public com.google.protobuf.ByteString
getRenameBytes() {
java.lang.Object ref = rename_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @param value The rename to set.
* @return This builder for chaining.
*/
public Builder setRename(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rename_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @return This builder for chaining.
*/
public Builder clearRename() {
rename_ = getDefaultInstance().getRename();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Rename the message/enum/enum value in next version.
*
*
* string rename = 1;
* @param value The bytes for rename to set.
* @return This builder for chaining.
*/
public Builder setRenameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rename_ = 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:xds.annotations.v3.MigrateAnnotation)
}
// @@protoc_insertion_point(class_scope:xds.annotations.v3.MigrateAnnotation)
private static final xds.annotations.v3.Migrate.MigrateAnnotation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xds.annotations.v3.Migrate.MigrateAnnotation();
}
public static xds.annotations.v3.Migrate.MigrateAnnotation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MigrateAnnotation 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 xds.annotations.v3.Migrate.MigrateAnnotation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldMigrateAnnotationOrBuilder extends
// @@protoc_insertion_point(interface_extends:xds.annotations.v3.FieldMigrateAnnotation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @return The rename.
*/
java.lang.String getRename();
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @return The bytes for rename.
*/
com.google.protobuf.ByteString
getRenameBytes();
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @return The oneofPromotion.
*/
java.lang.String getOneofPromotion();
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @return The bytes for oneofPromotion.
*/
com.google.protobuf.ByteString
getOneofPromotionBytes();
}
/**
* Protobuf type {@code xds.annotations.v3.FieldMigrateAnnotation}
*/
public static final class FieldMigrateAnnotation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xds.annotations.v3.FieldMigrateAnnotation)
FieldMigrateAnnotationOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldMigrateAnnotation.newBuilder() to construct.
private FieldMigrateAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldMigrateAnnotation() {
rename_ = "";
oneofPromotion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldMigrateAnnotation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FieldMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FieldMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xds.annotations.v3.Migrate.FieldMigrateAnnotation.class, xds.annotations.v3.Migrate.FieldMigrateAnnotation.Builder.class);
}
public static final int RENAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object rename_ = "";
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @return The rename.
*/
@java.lang.Override
public java.lang.String getRename() {
java.lang.Object ref = rename_;
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();
rename_ = s;
return s;
}
}
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @return The bytes for rename.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRenameBytes() {
java.lang.Object ref = rename_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ONEOF_PROMOTION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object oneofPromotion_ = "";
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @return The oneofPromotion.
*/
@java.lang.Override
public java.lang.String getOneofPromotion() {
java.lang.Object ref = oneofPromotion_;
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();
oneofPromotion_ = s;
return s;
}
}
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @return The bytes for oneofPromotion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOneofPromotionBytes() {
java.lang.Object ref = oneofPromotion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oneofPromotion_ = 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(rename_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rename_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oneofPromotion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oneofPromotion_);
}
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(rename_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rename_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oneofPromotion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneofPromotion_);
}
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 xds.annotations.v3.Migrate.FieldMigrateAnnotation)) {
return super.equals(obj);
}
xds.annotations.v3.Migrate.FieldMigrateAnnotation other = (xds.annotations.v3.Migrate.FieldMigrateAnnotation) obj;
if (!getRename()
.equals(other.getRename())) return false;
if (!getOneofPromotion()
.equals(other.getOneofPromotion())) 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) + RENAME_FIELD_NUMBER;
hash = (53 * hash) + getRename().hashCode();
hash = (37 * hash) + ONEOF_PROMOTION_FIELD_NUMBER;
hash = (53 * hash) + getOneofPromotion().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation 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 xds.annotations.v3.Migrate.FieldMigrateAnnotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation 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 xds.annotations.v3.Migrate.FieldMigrateAnnotation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation 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(xds.annotations.v3.Migrate.FieldMigrateAnnotation 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 xds.annotations.v3.FieldMigrateAnnotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xds.annotations.v3.FieldMigrateAnnotation)
xds.annotations.v3.Migrate.FieldMigrateAnnotationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FieldMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FieldMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xds.annotations.v3.Migrate.FieldMigrateAnnotation.class, xds.annotations.v3.Migrate.FieldMigrateAnnotation.Builder.class);
}
// Construct using xds.annotations.v3.Migrate.FieldMigrateAnnotation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rename_ = "";
oneofPromotion_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FieldMigrateAnnotation_descriptor;
}
@java.lang.Override
public xds.annotations.v3.Migrate.FieldMigrateAnnotation getDefaultInstanceForType() {
return xds.annotations.v3.Migrate.FieldMigrateAnnotation.getDefaultInstance();
}
@java.lang.Override
public xds.annotations.v3.Migrate.FieldMigrateAnnotation build() {
xds.annotations.v3.Migrate.FieldMigrateAnnotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xds.annotations.v3.Migrate.FieldMigrateAnnotation buildPartial() {
xds.annotations.v3.Migrate.FieldMigrateAnnotation result = new xds.annotations.v3.Migrate.FieldMigrateAnnotation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(xds.annotations.v3.Migrate.FieldMigrateAnnotation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rename_ = rename_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.oneofPromotion_ = oneofPromotion_;
}
}
@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 xds.annotations.v3.Migrate.FieldMigrateAnnotation) {
return mergeFrom((xds.annotations.v3.Migrate.FieldMigrateAnnotation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xds.annotations.v3.Migrate.FieldMigrateAnnotation other) {
if (other == xds.annotations.v3.Migrate.FieldMigrateAnnotation.getDefaultInstance()) return this;
if (!other.getRename().isEmpty()) {
rename_ = other.rename_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getOneofPromotion().isEmpty()) {
oneofPromotion_ = other.oneofPromotion_;
bitField0_ |= 0x00000002;
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: {
rename_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
oneofPromotion_ = input.readStringRequireUtf8();
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 rename_ = "";
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @return The rename.
*/
public java.lang.String getRename() {
java.lang.Object ref = rename_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rename_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @return The bytes for rename.
*/
public com.google.protobuf.ByteString
getRenameBytes() {
java.lang.Object ref = rename_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @param value The rename to set.
* @return This builder for chaining.
*/
public Builder setRename(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rename_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @return This builder for chaining.
*/
public Builder clearRename() {
rename_ = getDefaultInstance().getRename();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Rename the field in next version.
*
*
* string rename = 1;
* @param value The bytes for rename to set.
* @return This builder for chaining.
*/
public Builder setRenameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rename_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object oneofPromotion_ = "";
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @return The oneofPromotion.
*/
public java.lang.String getOneofPromotion() {
java.lang.Object ref = oneofPromotion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
oneofPromotion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @return The bytes for oneofPromotion.
*/
public com.google.protobuf.ByteString
getOneofPromotionBytes() {
java.lang.Object ref = oneofPromotion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oneofPromotion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @param value The oneofPromotion to set.
* @return This builder for chaining.
*/
public Builder setOneofPromotion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
oneofPromotion_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @return This builder for chaining.
*/
public Builder clearOneofPromotion() {
oneofPromotion_ = getDefaultInstance().getOneofPromotion();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Add the field to a named oneof in next version. If this already exists, the
* field will join its siblings under the oneof, otherwise a new oneof will be
* created with the given name.
*
*
* string oneof_promotion = 2;
* @param value The bytes for oneofPromotion to set.
* @return This builder for chaining.
*/
public Builder setOneofPromotionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
oneofPromotion_ = value;
bitField0_ |= 0x00000002;
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:xds.annotations.v3.FieldMigrateAnnotation)
}
// @@protoc_insertion_point(class_scope:xds.annotations.v3.FieldMigrateAnnotation)
private static final xds.annotations.v3.Migrate.FieldMigrateAnnotation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xds.annotations.v3.Migrate.FieldMigrateAnnotation();
}
public static xds.annotations.v3.Migrate.FieldMigrateAnnotation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldMigrateAnnotation 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 xds.annotations.v3.Migrate.FieldMigrateAnnotation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FileMigrateAnnotationOrBuilder extends
// @@protoc_insertion_point(interface_extends:xds.annotations.v3.FileMigrateAnnotation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @return The moveToPackage.
*/
java.lang.String getMoveToPackage();
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @return The bytes for moveToPackage.
*/
com.google.protobuf.ByteString
getMoveToPackageBytes();
}
/**
* Protobuf type {@code xds.annotations.v3.FileMigrateAnnotation}
*/
public static final class FileMigrateAnnotation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xds.annotations.v3.FileMigrateAnnotation)
FileMigrateAnnotationOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileMigrateAnnotation.newBuilder() to construct.
private FileMigrateAnnotation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileMigrateAnnotation() {
moveToPackage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileMigrateAnnotation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FileMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FileMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xds.annotations.v3.Migrate.FileMigrateAnnotation.class, xds.annotations.v3.Migrate.FileMigrateAnnotation.Builder.class);
}
public static final int MOVE_TO_PACKAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object moveToPackage_ = "";
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @return The moveToPackage.
*/
@java.lang.Override
public java.lang.String getMoveToPackage() {
java.lang.Object ref = moveToPackage_;
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();
moveToPackage_ = s;
return s;
}
}
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @return The bytes for moveToPackage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMoveToPackageBytes() {
java.lang.Object ref = moveToPackage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moveToPackage_ = 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(moveToPackage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, moveToPackage_);
}
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(moveToPackage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, moveToPackage_);
}
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 xds.annotations.v3.Migrate.FileMigrateAnnotation)) {
return super.equals(obj);
}
xds.annotations.v3.Migrate.FileMigrateAnnotation other = (xds.annotations.v3.Migrate.FileMigrateAnnotation) obj;
if (!getMoveToPackage()
.equals(other.getMoveToPackage())) 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) + MOVE_TO_PACKAGE_FIELD_NUMBER;
hash = (53 * hash) + getMoveToPackage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation 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 xds.annotations.v3.Migrate.FileMigrateAnnotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation 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 xds.annotations.v3.Migrate.FileMigrateAnnotation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation 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(xds.annotations.v3.Migrate.FileMigrateAnnotation 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 xds.annotations.v3.FileMigrateAnnotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xds.annotations.v3.FileMigrateAnnotation)
xds.annotations.v3.Migrate.FileMigrateAnnotationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FileMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FileMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xds.annotations.v3.Migrate.FileMigrateAnnotation.class, xds.annotations.v3.Migrate.FileMigrateAnnotation.Builder.class);
}
// Construct using xds.annotations.v3.Migrate.FileMigrateAnnotation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
moveToPackage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xds.annotations.v3.Migrate.internal_static_xds_annotations_v3_FileMigrateAnnotation_descriptor;
}
@java.lang.Override
public xds.annotations.v3.Migrate.FileMigrateAnnotation getDefaultInstanceForType() {
return xds.annotations.v3.Migrate.FileMigrateAnnotation.getDefaultInstance();
}
@java.lang.Override
public xds.annotations.v3.Migrate.FileMigrateAnnotation build() {
xds.annotations.v3.Migrate.FileMigrateAnnotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xds.annotations.v3.Migrate.FileMigrateAnnotation buildPartial() {
xds.annotations.v3.Migrate.FileMigrateAnnotation result = new xds.annotations.v3.Migrate.FileMigrateAnnotation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(xds.annotations.v3.Migrate.FileMigrateAnnotation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.moveToPackage_ = moveToPackage_;
}
}
@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 xds.annotations.v3.Migrate.FileMigrateAnnotation) {
return mergeFrom((xds.annotations.v3.Migrate.FileMigrateAnnotation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xds.annotations.v3.Migrate.FileMigrateAnnotation other) {
if (other == xds.annotations.v3.Migrate.FileMigrateAnnotation.getDefaultInstance()) return this;
if (!other.getMoveToPackage().isEmpty()) {
moveToPackage_ = other.moveToPackage_;
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 18: {
moveToPackage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
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 moveToPackage_ = "";
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @return The moveToPackage.
*/
public java.lang.String getMoveToPackage() {
java.lang.Object ref = moveToPackage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
moveToPackage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @return The bytes for moveToPackage.
*/
public com.google.protobuf.ByteString
getMoveToPackageBytes() {
java.lang.Object ref = moveToPackage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moveToPackage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @param value The moveToPackage to set.
* @return This builder for chaining.
*/
public Builder setMoveToPackage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
moveToPackage_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @return This builder for chaining.
*/
public Builder clearMoveToPackage() {
moveToPackage_ = getDefaultInstance().getMoveToPackage();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Move all types in the file to another package, this implies changing proto
* file path.
*
*
* string move_to_package = 2;
* @param value The bytes for moveToPackage to set.
* @return This builder for chaining.
*/
public Builder setMoveToPackageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
moveToPackage_ = 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:xds.annotations.v3.FileMigrateAnnotation)
}
// @@protoc_insertion_point(class_scope:xds.annotations.v3.FileMigrateAnnotation)
private static final xds.annotations.v3.Migrate.FileMigrateAnnotation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xds.annotations.v3.Migrate.FileMigrateAnnotation();
}
public static xds.annotations.v3.Migrate.FileMigrateAnnotation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileMigrateAnnotation 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 xds.annotations.v3.Migrate.FileMigrateAnnotation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int MESSAGE_MIGRATE_FIELD_NUMBER = 112948430;
/**
* extend .google.protobuf.MessageOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MessageOptions,
xds.annotations.v3.Migrate.MigrateAnnotation> messageMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
xds.annotations.v3.Migrate.MigrateAnnotation.class,
xds.annotations.v3.Migrate.MigrateAnnotation.getDefaultInstance());
public static final int FIELD_MIGRATE_FIELD_NUMBER = 112948430;
/**
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
xds.annotations.v3.Migrate.FieldMigrateAnnotation> fieldMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
xds.annotations.v3.Migrate.FieldMigrateAnnotation.class,
xds.annotations.v3.Migrate.FieldMigrateAnnotation.getDefaultInstance());
public static final int ENUM_MIGRATE_FIELD_NUMBER = 112948430;
/**
* extend .google.protobuf.EnumOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.EnumOptions,
xds.annotations.v3.Migrate.MigrateAnnotation> enumMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
xds.annotations.v3.Migrate.MigrateAnnotation.class,
xds.annotations.v3.Migrate.MigrateAnnotation.getDefaultInstance());
public static final int ENUM_VALUE_MIGRATE_FIELD_NUMBER = 112948430;
/**
* extend .google.protobuf.EnumValueOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.EnumValueOptions,
xds.annotations.v3.Migrate.MigrateAnnotation> enumValueMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
xds.annotations.v3.Migrate.MigrateAnnotation.class,
xds.annotations.v3.Migrate.MigrateAnnotation.getDefaultInstance());
public static final int FILE_MIGRATE_FIELD_NUMBER = 112948430;
/**
* extend .google.protobuf.FileOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FileOptions,
xds.annotations.v3.Migrate.FileMigrateAnnotation> fileMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
xds.annotations.v3.Migrate.FileMigrateAnnotation.class,
xds.annotations.v3.Migrate.FileMigrateAnnotation.getDefaultInstance());
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_xds_annotations_v3_MigrateAnnotation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_xds_annotations_v3_MigrateAnnotation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_xds_annotations_v3_FieldMigrateAnnotation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_xds_annotations_v3_FieldMigrateAnnotation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_xds_annotations_v3_FileMigrateAnnotation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_xds_annotations_v3_FileMigrateAnnotation_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n xds/annotations/v3/migrate.proto\022\022xds." +
"annotations.v3\032 google/protobuf/descript" +
"or.proto\"#\n\021MigrateAnnotation\022\016\n\006rename\030" +
"\001 \001(\t\"A\n\026FieldMigrateAnnotation\022\016\n\006renam" +
"e\030\001 \001(\t\022\027\n\017oneof_promotion\030\002 \001(\t\"0\n\025File" +
"MigrateAnnotation\022\027\n\017move_to_package\030\002 \001" +
"(\t:b\n\017message_migrate\022\037.google.protobuf." +
"MessageOptions\030\316\351\3555 \001(\0132%.xds.annotation" +
"s.v3.MigrateAnnotation:c\n\rfield_migrate\022" +
"\035.google.protobuf.FieldOptions\030\316\351\3555 \001(\0132" +
"*.xds.annotations.v3.FieldMigrateAnnotat" +
"ion:\\\n\014enum_migrate\022\034.google.protobuf.En" +
"umOptions\030\316\351\3555 \001(\0132%.xds.annotations.v3." +
"MigrateAnnotation:g\n\022enum_value_migrate\022" +
"!.google.protobuf.EnumValueOptions\030\316\351\3555 " +
"\001(\0132%.xds.annotations.v3.MigrateAnnotati" +
"on:`\n\014file_migrate\022\034.google.protobuf.Fil" +
"eOptions\030\316\351\3555 \001(\0132).xds.annotations.v3.F" +
"ileMigrateAnnotationB+Z)github.com/cncf/" +
"xds/go/xds/annotations/v3b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
});
internal_static_xds_annotations_v3_MigrateAnnotation_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_xds_annotations_v3_MigrateAnnotation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_xds_annotations_v3_MigrateAnnotation_descriptor,
new java.lang.String[] { "Rename", });
internal_static_xds_annotations_v3_FieldMigrateAnnotation_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_xds_annotations_v3_FieldMigrateAnnotation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_xds_annotations_v3_FieldMigrateAnnotation_descriptor,
new java.lang.String[] { "Rename", "OneofPromotion", });
internal_static_xds_annotations_v3_FileMigrateAnnotation_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_xds_annotations_v3_FileMigrateAnnotation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_xds_annotations_v3_FileMigrateAnnotation_descriptor,
new java.lang.String[] { "MoveToPackage", });
messageMigrate.internalInit(descriptor.getExtensions().get(0));
fieldMigrate.internalInit(descriptor.getExtensions().get(1));
enumMigrate.internalInit(descriptor.getExtensions().get(2));
enumValueMigrate.internalInit(descriptor.getExtensions().get(3));
fileMigrate.internalInit(descriptor.getExtensions().get(4));
com.google.protobuf.DescriptorProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy