File tree Expand file tree Collapse file tree
alts/src/main/java/io/grpc/alts/internal
api/src/main/java/io/grpc
binder/src/main/java/io/grpc/binder/internal
grpclb/src/main/java/io/grpc/grpclb Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,10 +58,11 @@ public final class AltsProtocolNegotiator {
5858 private static final AsyncSemaphore handshakeSemaphore = new AsyncSemaphore (32 );
5959
6060 @ Grpc .TransportAttr
61- public static final Attributes .Key <TsiPeer > TSI_PEER_KEY = Attributes .Key .create ("TSI_PEER" );
61+ public static final Attributes .Key <TsiPeer > TSI_PEER_KEY =
62+ Attributes .Key .create ("internal:TSI_PEER" );
6263 @ Grpc .TransportAttr
6364 public static final Attributes .Key <Object > AUTH_CONTEXT_KEY =
64- Attributes .Key .create ("AUTH_CONTEXT_KEY" );
65+ Attributes .Key .create ("internal: AUTH_CONTEXT_KEY" );
6566
6667 private static final AsciiString SCHEME = AsciiString .of ("https" );
6768
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public final class EquivalentAddressGroup {
4444 @ Attr
4545 @ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/6138" )
4646 public static final Attributes .Key <String > ATTR_AUTHORITY_OVERRIDE =
47- Attributes .Key .create ("io.grpc.EquivalentAddressGroup.authorityOverride " );
47+ Attributes .Key .create ("io.grpc.EquivalentAddressGroup.ATTR_AUTHORITY_OVERRIDE " );
4848 private final List <SocketAddress > addrs ;
4949 private final Attributes attrs ;
5050
Original file line number Diff line number Diff line change @@ -38,23 +38,23 @@ private Grpc() {
3838 @ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1710" )
3939 @ TransportAttr
4040 public static final Attributes .Key <SocketAddress > TRANSPORT_ATTR_REMOTE_ADDR =
41- Attributes .Key .create ("remote-addr " );
41+ Attributes .Key .create ("io.grpc.Grpc.TRANSPORT_ATTR_REMOTE_ADDR " );
4242
4343 /**
4444 * Attribute key for the local address of a transport.
4545 */
4646 @ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1710" )
4747 @ TransportAttr
4848 public static final Attributes .Key <SocketAddress > TRANSPORT_ATTR_LOCAL_ADDR =
49- Attributes .Key .create ("local-addr " );
49+ Attributes .Key .create ("io.grpc.Grpc.TRANSPORT_ATTR_LOCAL_ADDR " );
5050
5151 /**
5252 * Attribute key for SSL session of a transport.
5353 */
5454 @ ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1710" )
5555 @ TransportAttr
5656 public static final Attributes .Key <SSLSession > TRANSPORT_ATTR_SSL_SESSION =
57- Attributes .Key .create ("ssl-session " );
57+ Attributes .Key .create ("io.grpc.Grpc.TRANSPORT_ATTR_SSL_SESSION " );
5858
5959 /**
6060 * Annotation for transport attributes. It follows the annotation semantics defined
Original file line number Diff line number Diff line change 3232public abstract class InternalConfigSelector {
3333 @ NameResolver .ResolutionResultAttr
3434 public static final Attributes .Key <io .grpc .InternalConfigSelector > KEY
35- = Attributes .Key .create ("io.grpc.config-selector" );
35+ = Attributes .Key .create ("internal: io.grpc.config-selector" );
3636
3737 // Use PickSubchannelArgs for SelectConfigArgs for now. May change over time.
3838 /** Selects the config for an PRC. */
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public abstract class LoadBalancer {
114114 @ Internal
115115 @ NameResolver .ResolutionResultAttr
116116 public static final Attributes .Key <Map <String , ?>> ATTR_HEALTH_CHECKING_CONFIG =
117- Attributes .Key .create ("health-checking-config" );
117+ Attributes .Key .create ("internal: health-checking-config" );
118118 private int recursionCount ;
119119
120120 /**
Original file line number Diff line number Diff line change @@ -109,17 +109,18 @@ public abstract class BinderTransport
109109 * active transport.
110110 */
111111 @ Internal
112- public static final Attributes .Key <Integer > REMOTE_UID = Attributes .Key .create ("remote-uid" );
112+ public static final Attributes .Key <Integer > REMOTE_UID =
113+ Attributes .Key .create ("internal:remote-uid" );
113114
114115 /** The authority of the server. */
115116 @ Internal
116117 public static final Attributes .Key <String > SERVER_AUTHORITY =
117- Attributes .Key .create ("server-authority" );
118+ Attributes .Key .create ("internal: server-authority" );
118119
119120 /** A transport attribute to hold the {@link InboundParcelablePolicy}. */
120121 @ Internal
121122 public static final Attributes .Key <InboundParcelablePolicy > INBOUND_PARCELABLE_POLICY =
122- Attributes .Key .create ("inbound-parcelable-policy" );
123+ Attributes .Key .create ("internal: inbound-parcelable-policy" );
123124
124125 /**
125126 * Version code for this wire format.
Original file line number Diff line number Diff line change 4040public final class BinderTransportSecurity {
4141
4242 private static final Attributes .Key <TransportAuthorizationState > TRANSPORT_AUTHORIZATION_STATE =
43- Attributes .Key .create ("transport-authorization-state" );
43+ Attributes .Key .create ("internal: transport-authorization-state" );
4444
4545 private BinderTransportSecurity () {}
4646
Original file line number Diff line number Diff line change @@ -46,23 +46,23 @@ public final class GrpclbConstants {
4646 * Attribute key for gRPC LB server addresses.
4747 */
4848 public static final Attributes .Key <List <EquivalentAddressGroup >> ATTR_LB_ADDRS =
49- Attributes .Key .create ("io.grpc.grpclb.lbAddrs " );
49+ Attributes .Key .create ("io.grpc.grpclb.GrpclbConstants.ATTR_LB_ADDRS " );
5050
5151 /**
5252 * The naming authority of a gRPC LB server address. It is an address-group-level attribute,
5353 * present when the address group is a LoadBalancer.
5454 */
5555 @ EquivalentAddressGroup .Attr
5656 public static final Attributes .Key <String > ATTR_LB_ADDR_AUTHORITY =
57- Attributes .Key .create ("io.grpc.grpclb.lbAddrAuthority " );
57+ Attributes .Key .create ("io.grpc.grpclb.GrpclbConstants.ATTR_LB_ADDR_AUTHORITY " );
5858
5959 /**
6060 * Whether this EquivalentAddressGroup was provided by a GRPCLB server. It would be rare for this
6161 * value to be {@code false}; generally it would be better to not have the key present at all.
6262 */
6363 @ EquivalentAddressGroup .Attr
6464 public static final Attributes .Key <Boolean > ATTR_LB_PROVIDED_BACKEND =
65- Attributes .Key .create ("io.grpc.grpclb.lbProvidedBackend " );
65+ Attributes .Key .create ("io.grpc.grpclb.GrpclbConstants.ATTR_LB_PROVIDED_BACKEND " );
6666
6767 private GrpclbConstants () { }
6868}
You can’t perform that action at this time.
0 commit comments