Change default visibility for TypeAlias from 'internal' to 'public'
Since public type aliases will supposedly be more common than internal ones, it makes sense to save on writing flags for the former rather than the latter
This commit is contained in:
@@ -336,7 +336,7 @@ message TypeAlias {
|
||||
hasAnnotations
|
||||
Visibility
|
||||
*/
|
||||
optional int32 flags = 1 [default = 0];
|
||||
optional int32 flags = 1 [default = 6 /* public, no annotations */];
|
||||
|
||||
required int32 name = 2 [(name_id_in_table) = true];
|
||||
|
||||
|
||||
@@ -17012,7 +17012,7 @@ public final class ProtoBuf {
|
||||
ExtendableMessageOrBuilder<TypeAlias> {
|
||||
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17021,7 +17021,7 @@ public final class ProtoBuf {
|
||||
*/
|
||||
boolean hasFlags();
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17259,7 +17259,7 @@ public final class ProtoBuf {
|
||||
public static final int FLAGS_FIELD_NUMBER = 1;
|
||||
private int flags_;
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17270,7 +17270,7 @@ public final class ProtoBuf {
|
||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17427,7 +17427,7 @@ public final class ProtoBuf {
|
||||
}
|
||||
|
||||
private void initFields() {
|
||||
flags_ = 0;
|
||||
flags_ = 6;
|
||||
name_ = 0;
|
||||
typeParameter_ = java.util.Collections.emptyList();
|
||||
underlyingType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance();
|
||||
@@ -17644,7 +17644,7 @@ public final class ProtoBuf {
|
||||
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
flags_ = 0;
|
||||
flags_ = 6;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
name_ = 0;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
@@ -17822,9 +17822,9 @@ public final class ProtoBuf {
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int flags_ ;
|
||||
private int flags_ = 6;
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17835,7 +17835,7 @@ public final class ProtoBuf {
|
||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17846,7 +17846,7 @@ public final class ProtoBuf {
|
||||
return flags_;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17860,7 +17860,7 @@ public final class ProtoBuf {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>optional int32 flags = 1 [default = 0];</code>
|
||||
* <code>optional int32 flags = 1 [default = 6];</code>
|
||||
*
|
||||
* <pre>
|
||||
*hasAnnotations
|
||||
@@ -17869,7 +17869,7 @@ public final class ProtoBuf {
|
||||
*/
|
||||
public Builder clearFlags() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
flags_ = 0;
|
||||
flags_ = 6;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user