![JAR search and dependency download from the Maven repository](/logo.png)
udpa.annotations.Migrate Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: udpa/annotations/migrate.proto
// Protobuf Java Version: 3.25.5
package udpa.annotations;
public final class Migrate {
private Migrate() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(udpa.annotations.Migrate.messageMigrate);
registry.add(udpa.annotations.Migrate.fieldMigrate);
registry.add(udpa.annotations.Migrate.enumMigrate);
registry.add(udpa.annotations.Migrate.enumValueMigrate);
registry.add(udpa.annotations.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:udpa.annotations.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 udpa.annotations.MigrateAnnotation}
*/
public static final class MigrateAnnotation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:udpa.annotations.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 udpa.annotations.Migrate.internal_static_udpa_annotations_MigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_MigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
udpa.annotations.Migrate.MigrateAnnotation.class, udpa.annotations.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 udpa.annotations.Migrate.MigrateAnnotation)) {
return super.equals(obj);
}
udpa.annotations.Migrate.MigrateAnnotation other = (udpa.annotations.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 udpa.annotations.Migrate.MigrateAnnotation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.Migrate.MigrateAnnotation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static udpa.annotations.Migrate.MigrateAnnotation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.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 udpa.annotations.Migrate.MigrateAnnotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.Migrate.MigrateAnnotation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static udpa.annotations.Migrate.MigrateAnnotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static udpa.annotations.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 udpa.annotations.Migrate.MigrateAnnotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static udpa.annotations.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 udpa.annotations.Migrate.MigrateAnnotation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static udpa.annotations.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(udpa.annotations.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 udpa.annotations.MigrateAnnotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:udpa.annotations.MigrateAnnotation)
udpa.annotations.Migrate.MigrateAnnotationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_MigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_MigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
udpa.annotations.Migrate.MigrateAnnotation.class, udpa.annotations.Migrate.MigrateAnnotation.Builder.class);
}
// Construct using udpa.annotations.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 udpa.annotations.Migrate.internal_static_udpa_annotations_MigrateAnnotation_descriptor;
}
@java.lang.Override
public udpa.annotations.Migrate.MigrateAnnotation getDefaultInstanceForType() {
return udpa.annotations.Migrate.MigrateAnnotation.getDefaultInstance();
}
@java.lang.Override
public udpa.annotations.Migrate.MigrateAnnotation build() {
udpa.annotations.Migrate.MigrateAnnotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public udpa.annotations.Migrate.MigrateAnnotation buildPartial() {
udpa.annotations.Migrate.MigrateAnnotation result = new udpa.annotations.Migrate.MigrateAnnotation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(udpa.annotations.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 udpa.annotations.Migrate.MigrateAnnotation) {
return mergeFrom((udpa.annotations.Migrate.MigrateAnnotation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(udpa.annotations.Migrate.MigrateAnnotation other) {
if (other == udpa.annotations.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:udpa.annotations.MigrateAnnotation)
}
// @@protoc_insertion_point(class_scope:udpa.annotations.MigrateAnnotation)
private static final udpa.annotations.Migrate.MigrateAnnotation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new udpa.annotations.Migrate.MigrateAnnotation();
}
public static udpa.annotations.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 udpa.annotations.Migrate.MigrateAnnotation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldMigrateAnnotationOrBuilder extends
// @@protoc_insertion_point(interface_extends:udpa.annotations.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 udpa.annotations.FieldMigrateAnnotation}
*/
public static final class FieldMigrateAnnotation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:udpa.annotations.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 udpa.annotations.Migrate.internal_static_udpa_annotations_FieldMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_FieldMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
udpa.annotations.Migrate.FieldMigrateAnnotation.class, udpa.annotations.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 udpa.annotations.Migrate.FieldMigrateAnnotation)) {
return super.equals(obj);
}
udpa.annotations.Migrate.FieldMigrateAnnotation other = (udpa.annotations.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 udpa.annotations.Migrate.FieldMigrateAnnotation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.Migrate.FieldMigrateAnnotation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static udpa.annotations.Migrate.FieldMigrateAnnotation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.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 udpa.annotations.Migrate.FieldMigrateAnnotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.Migrate.FieldMigrateAnnotation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static udpa.annotations.Migrate.FieldMigrateAnnotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static udpa.annotations.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 udpa.annotations.Migrate.FieldMigrateAnnotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static udpa.annotations.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 udpa.annotations.Migrate.FieldMigrateAnnotation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static udpa.annotations.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(udpa.annotations.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 udpa.annotations.FieldMigrateAnnotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:udpa.annotations.FieldMigrateAnnotation)
udpa.annotations.Migrate.FieldMigrateAnnotationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_FieldMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_FieldMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
udpa.annotations.Migrate.FieldMigrateAnnotation.class, udpa.annotations.Migrate.FieldMigrateAnnotation.Builder.class);
}
// Construct using udpa.annotations.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 udpa.annotations.Migrate.internal_static_udpa_annotations_FieldMigrateAnnotation_descriptor;
}
@java.lang.Override
public udpa.annotations.Migrate.FieldMigrateAnnotation getDefaultInstanceForType() {
return udpa.annotations.Migrate.FieldMigrateAnnotation.getDefaultInstance();
}
@java.lang.Override
public udpa.annotations.Migrate.FieldMigrateAnnotation build() {
udpa.annotations.Migrate.FieldMigrateAnnotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public udpa.annotations.Migrate.FieldMigrateAnnotation buildPartial() {
udpa.annotations.Migrate.FieldMigrateAnnotation result = new udpa.annotations.Migrate.FieldMigrateAnnotation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(udpa.annotations.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 udpa.annotations.Migrate.FieldMigrateAnnotation) {
return mergeFrom((udpa.annotations.Migrate.FieldMigrateAnnotation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(udpa.annotations.Migrate.FieldMigrateAnnotation other) {
if (other == udpa.annotations.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:udpa.annotations.FieldMigrateAnnotation)
}
// @@protoc_insertion_point(class_scope:udpa.annotations.FieldMigrateAnnotation)
private static final udpa.annotations.Migrate.FieldMigrateAnnotation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new udpa.annotations.Migrate.FieldMigrateAnnotation();
}
public static udpa.annotations.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 udpa.annotations.Migrate.FieldMigrateAnnotation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FileMigrateAnnotationOrBuilder extends
// @@protoc_insertion_point(interface_extends:udpa.annotations.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 udpa.annotations.FileMigrateAnnotation}
*/
public static final class FileMigrateAnnotation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:udpa.annotations.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 udpa.annotations.Migrate.internal_static_udpa_annotations_FileMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_FileMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
udpa.annotations.Migrate.FileMigrateAnnotation.class, udpa.annotations.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 udpa.annotations.Migrate.FileMigrateAnnotation)) {
return super.equals(obj);
}
udpa.annotations.Migrate.FileMigrateAnnotation other = (udpa.annotations.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 udpa.annotations.Migrate.FileMigrateAnnotation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.Migrate.FileMigrateAnnotation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static udpa.annotations.Migrate.FileMigrateAnnotation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.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 udpa.annotations.Migrate.FileMigrateAnnotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static udpa.annotations.Migrate.FileMigrateAnnotation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static udpa.annotations.Migrate.FileMigrateAnnotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static udpa.annotations.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 udpa.annotations.Migrate.FileMigrateAnnotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static udpa.annotations.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 udpa.annotations.Migrate.FileMigrateAnnotation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static udpa.annotations.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(udpa.annotations.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 udpa.annotations.FileMigrateAnnotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:udpa.annotations.FileMigrateAnnotation)
udpa.annotations.Migrate.FileMigrateAnnotationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_FileMigrateAnnotation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return udpa.annotations.Migrate.internal_static_udpa_annotations_FileMigrateAnnotation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
udpa.annotations.Migrate.FileMigrateAnnotation.class, udpa.annotations.Migrate.FileMigrateAnnotation.Builder.class);
}
// Construct using udpa.annotations.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 udpa.annotations.Migrate.internal_static_udpa_annotations_FileMigrateAnnotation_descriptor;
}
@java.lang.Override
public udpa.annotations.Migrate.FileMigrateAnnotation getDefaultInstanceForType() {
return udpa.annotations.Migrate.FileMigrateAnnotation.getDefaultInstance();
}
@java.lang.Override
public udpa.annotations.Migrate.FileMigrateAnnotation build() {
udpa.annotations.Migrate.FileMigrateAnnotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public udpa.annotations.Migrate.FileMigrateAnnotation buildPartial() {
udpa.annotations.Migrate.FileMigrateAnnotation result = new udpa.annotations.Migrate.FileMigrateAnnotation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(udpa.annotations.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 udpa.annotations.Migrate.FileMigrateAnnotation) {
return mergeFrom((udpa.annotations.Migrate.FileMigrateAnnotation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(udpa.annotations.Migrate.FileMigrateAnnotation other) {
if (other == udpa.annotations.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:udpa.annotations.FileMigrateAnnotation)
}
// @@protoc_insertion_point(class_scope:udpa.annotations.FileMigrateAnnotation)
private static final udpa.annotations.Migrate.FileMigrateAnnotation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new udpa.annotations.Migrate.FileMigrateAnnotation();
}
public static udpa.annotations.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 udpa.annotations.Migrate.FileMigrateAnnotation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int MESSAGE_MIGRATE_FIELD_NUMBER = 171962766;
/**
* extend .google.protobuf.MessageOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MessageOptions,
udpa.annotations.Migrate.MigrateAnnotation> messageMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
udpa.annotations.Migrate.MigrateAnnotation.class,
udpa.annotations.Migrate.MigrateAnnotation.getDefaultInstance());
public static final int FIELD_MIGRATE_FIELD_NUMBER = 171962766;
/**
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
udpa.annotations.Migrate.FieldMigrateAnnotation> fieldMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
udpa.annotations.Migrate.FieldMigrateAnnotation.class,
udpa.annotations.Migrate.FieldMigrateAnnotation.getDefaultInstance());
public static final int ENUM_MIGRATE_FIELD_NUMBER = 171962766;
/**
* extend .google.protobuf.EnumOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.EnumOptions,
udpa.annotations.Migrate.MigrateAnnotation> enumMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
udpa.annotations.Migrate.MigrateAnnotation.class,
udpa.annotations.Migrate.MigrateAnnotation.getDefaultInstance());
public static final int ENUM_VALUE_MIGRATE_FIELD_NUMBER = 171962766;
/**
* extend .google.protobuf.EnumValueOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.EnumValueOptions,
udpa.annotations.Migrate.MigrateAnnotation> enumValueMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
udpa.annotations.Migrate.MigrateAnnotation.class,
udpa.annotations.Migrate.MigrateAnnotation.getDefaultInstance());
public static final int FILE_MIGRATE_FIELD_NUMBER = 171962766;
/**
* extend .google.protobuf.FileOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FileOptions,
udpa.annotations.Migrate.FileMigrateAnnotation> fileMigrate = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
udpa.annotations.Migrate.FileMigrateAnnotation.class,
udpa.annotations.Migrate.FileMigrateAnnotation.getDefaultInstance());
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_udpa_annotations_MigrateAnnotation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_udpa_annotations_MigrateAnnotation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_udpa_annotations_FieldMigrateAnnotation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_udpa_annotations_FieldMigrateAnnotation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_udpa_annotations_FileMigrateAnnotation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_udpa_annotations_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\036udpa/annotations/migrate.proto\022\020udpa.a" +
"nnotations\032 google/protobuf/descriptor.p" +
"roto\"#\n\021MigrateAnnotation\022\016\n\006rename\030\001 \001(" +
"\t\"A\n\026FieldMigrateAnnotation\022\016\n\006rename\030\001 " +
"\001(\t\022\027\n\017oneof_promotion\030\002 \001(\t\"0\n\025FileMigr" +
"ateAnnotation\022\027\n\017move_to_package\030\002 \001(\t:`" +
"\n\017message_migrate\022\037.google.protobuf.Mess" +
"ageOptions\030\216\343\377Q \001(\0132#.udpa.annotations.M" +
"igrateAnnotation:a\n\rfield_migrate\022\035.goog" +
"le.protobuf.FieldOptions\030\216\343\377Q \001(\0132(.udpa" +
".annotations.FieldMigrateAnnotation:Z\n\014e" +
"num_migrate\022\034.google.protobuf.EnumOption" +
"s\030\216\343\377Q \001(\0132#.udpa.annotations.MigrateAnn" +
"otation:e\n\022enum_value_migrate\022!.google.p" +
"rotobuf.EnumValueOptions\030\216\343\377Q \001(\0132#.udpa" +
".annotations.MigrateAnnotation:^\n\014file_m" +
"igrate\022\034.google.protobuf.FileOptions\030\216\343\377" +
"Q \001(\0132\'.udpa.annotations.FileMigrateAnno" +
"tationB)Z\'github.com/cncf/xds/go/udpa/an" +
"notationsb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
});
internal_static_udpa_annotations_MigrateAnnotation_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_udpa_annotations_MigrateAnnotation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_udpa_annotations_MigrateAnnotation_descriptor,
new java.lang.String[] { "Rename", });
internal_static_udpa_annotations_FieldMigrateAnnotation_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_udpa_annotations_FieldMigrateAnnotation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_udpa_annotations_FieldMigrateAnnotation_descriptor,
new java.lang.String[] { "Rename", "OneofPromotion", });
internal_static_udpa_annotations_FileMigrateAnnotation_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_udpa_annotations_FileMigrateAnnotation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_udpa_annotations_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