Class StsServiceCredentials.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
io.envoyproxy.envoy.extensions.grpc_service.call_credentials.sts_service.v3.StsServiceCredentials.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StsServiceCredentialsOrBuilder,Cloneable
- Enclosing class:
- StsServiceCredentials
public static final class StsServiceCredentials.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
implements StsServiceCredentialsOrBuilder
Security token service configuration that allows Google gRPC to fetch security token from an OAuth 2.0 authorization server. See https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16 and https://github.com/grpc/grpc/pull/19587. [#not-implemented-hide:] [#next-free-field: 10]Protobuf type
envoy.extensions.grpc_service.call_credentials.sts_service.v3.StsServiceCredentials-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The path of actor token, a security token that represents the identity of the acting party.Type of the actor token.Logical name of the target service where the client intends to use the requested security token.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Type of the requested security token.Location of the target service or resource where the client intends to use the requested security token.The desired scope of the requested security token in the context of the service or resource where the token will be used.The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.Type of the subject token.URI of the token exchange service that handles token exchange requests.clone()The path of actor token, a security token that represents the identity of the acting party.com.google.protobuf.ByteStringThe path of actor token, a security token that represents the identity of the acting party.Type of the actor token.com.google.protobuf.ByteStringType of the actor token.Logical name of the target service where the client intends to use the requested security token.com.google.protobuf.ByteStringLogical name of the target service where the client intends to use the requested security token.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorType of the requested security token.com.google.protobuf.ByteStringType of the requested security token.Location of the target service or resource where the client intends to use the requested security token.com.google.protobuf.ByteStringLocation of the target service or resource where the client intends to use the requested security token.getScope()The desired scope of the requested security token in the context of the service or resource where the token will be used.com.google.protobuf.ByteStringThe desired scope of the requested security token in the context of the service or resource where the token will be used.The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.com.google.protobuf.ByteStringThe path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.Type of the subject token.com.google.protobuf.ByteStringType of the subject token.URI of the token exchange service that handles token exchange requests.com.google.protobuf.ByteStringURI of the token exchange service that handles token exchange requests.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(StsServiceCredentials other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setActorTokenPath(String value) The path of actor token, a security token that represents the identity of the acting party.setActorTokenPathBytes(com.google.protobuf.ByteString value) The path of actor token, a security token that represents the identity of the acting party.setActorTokenType(String value) Type of the actor token.setActorTokenTypeBytes(com.google.protobuf.ByteString value) Type of the actor token.setAudience(String value) Logical name of the target service where the client intends to use the requested security token.setAudienceBytes(com.google.protobuf.ByteString value) Logical name of the target service where the client intends to use the requested security token.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestedTokenType(String value) Type of the requested security token.setRequestedTokenTypeBytes(com.google.protobuf.ByteString value) Type of the requested security token.setResource(String value) Location of the target service or resource where the client intends to use the requested security token.setResourceBytes(com.google.protobuf.ByteString value) Location of the target service or resource where the client intends to use the requested security token.The desired scope of the requested security token in the context of the service or resource where the token will be used.setScopeBytes(com.google.protobuf.ByteString value) The desired scope of the requested security token in the context of the service or resource where the token will be used.setSubjectTokenPath(String value) The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.setSubjectTokenPathBytes(com.google.protobuf.ByteString value) The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.setSubjectTokenType(String value) Type of the subject token.setSubjectTokenTypeBytes(com.google.protobuf.ByteString value) Type of the subject token.setTokenExchangeServiceUri(String value) URI of the token exchange service that handles token exchange requests.setTokenExchangeServiceUriBytes(com.google.protobuf.ByteString value) URI of the token exchange service that handles token exchange requests.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
setField
public StsServiceCredentials.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
clearField
public StsServiceCredentials.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
clearOneof
public StsServiceCredentials.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
setRepeatedField
public StsServiceCredentials.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
addRepeatedField
public StsServiceCredentials.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StsServiceCredentials.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
mergeFrom
public StsServiceCredentials.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StsServiceCredentials.Builder>- Throws:
IOException
-
getTokenExchangeServiceUri
URI of the token exchange service that handles token exchange requests. [#comment:TODO(asraa): Add URI validation when implemented. Tracked by https://github.com/bufbuild/protoc-gen-validate/issues/303]
string token_exchange_service_uri = 1;- Specified by:
getTokenExchangeServiceUriin interfaceStsServiceCredentialsOrBuilder- Returns:
- The tokenExchangeServiceUri.
-
getTokenExchangeServiceUriBytes
public com.google.protobuf.ByteString getTokenExchangeServiceUriBytes()URI of the token exchange service that handles token exchange requests. [#comment:TODO(asraa): Add URI validation when implemented. Tracked by https://github.com/bufbuild/protoc-gen-validate/issues/303]
string token_exchange_service_uri = 1;- Specified by:
getTokenExchangeServiceUriBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for tokenExchangeServiceUri.
-
setTokenExchangeServiceUri
URI of the token exchange service that handles token exchange requests. [#comment:TODO(asraa): Add URI validation when implemented. Tracked by https://github.com/bufbuild/protoc-gen-validate/issues/303]
string token_exchange_service_uri = 1;- Parameters:
value- The tokenExchangeServiceUri to set.- Returns:
- This builder for chaining.
-
clearTokenExchangeServiceUri
URI of the token exchange service that handles token exchange requests. [#comment:TODO(asraa): Add URI validation when implemented. Tracked by https://github.com/bufbuild/protoc-gen-validate/issues/303]
string token_exchange_service_uri = 1;- Returns:
- This builder for chaining.
-
setTokenExchangeServiceUriBytes
public StsServiceCredentials.Builder setTokenExchangeServiceUriBytes(com.google.protobuf.ByteString value) URI of the token exchange service that handles token exchange requests. [#comment:TODO(asraa): Add URI validation when implemented. Tracked by https://github.com/bufbuild/protoc-gen-validate/issues/303]
string token_exchange_service_uri = 1;- Parameters:
value- The bytes for tokenExchangeServiceUri to set.- Returns:
- This builder for chaining.
-
getResource
Location of the target service or resource where the client intends to use the requested security token.
string resource = 2;- Specified by:
getResourcein interfaceStsServiceCredentialsOrBuilder- Returns:
- The resource.
-
getResourceBytes
public com.google.protobuf.ByteString getResourceBytes()Location of the target service or resource where the client intends to use the requested security token.
string resource = 2;- Specified by:
getResourceBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for resource.
-
setResource
Location of the target service or resource where the client intends to use the requested security token.
string resource = 2;- Parameters:
value- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
Location of the target service or resource where the client intends to use the requested security token.
string resource = 2;- Returns:
- This builder for chaining.
-
setResourceBytes
Location of the target service or resource where the client intends to use the requested security token.
string resource = 2;- Parameters:
value- The bytes for resource to set.- Returns:
- This builder for chaining.
-
getAudience
Logical name of the target service where the client intends to use the requested security token.
string audience = 3;- Specified by:
getAudiencein interfaceStsServiceCredentialsOrBuilder- Returns:
- The audience.
-
getAudienceBytes
public com.google.protobuf.ByteString getAudienceBytes()Logical name of the target service where the client intends to use the requested security token.
string audience = 3;- Specified by:
getAudienceBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for audience.
-
setAudience
Logical name of the target service where the client intends to use the requested security token.
string audience = 3;- Parameters:
value- The audience to set.- Returns:
- This builder for chaining.
-
clearAudience
Logical name of the target service where the client intends to use the requested security token.
string audience = 3;- Returns:
- This builder for chaining.
-
setAudienceBytes
Logical name of the target service where the client intends to use the requested security token.
string audience = 3;- Parameters:
value- The bytes for audience to set.- Returns:
- This builder for chaining.
-
getScope
The desired scope of the requested security token in the context of the service or resource where the token will be used.
string scope = 4;- Specified by:
getScopein interfaceStsServiceCredentialsOrBuilder- Returns:
- The scope.
-
getScopeBytes
public com.google.protobuf.ByteString getScopeBytes()The desired scope of the requested security token in the context of the service or resource where the token will be used.
string scope = 4;- Specified by:
getScopeBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for scope.
-
setScope
The desired scope of the requested security token in the context of the service or resource where the token will be used.
string scope = 4;- Parameters:
value- The scope to set.- Returns:
- This builder for chaining.
-
clearScope
The desired scope of the requested security token in the context of the service or resource where the token will be used.
string scope = 4;- Returns:
- This builder for chaining.
-
setScopeBytes
The desired scope of the requested security token in the context of the service or resource where the token will be used.
string scope = 4;- Parameters:
value- The bytes for scope to set.- Returns:
- This builder for chaining.
-
getRequestedTokenType
Type of the requested security token.
string requested_token_type = 5;- Specified by:
getRequestedTokenTypein interfaceStsServiceCredentialsOrBuilder- Returns:
- The requestedTokenType.
-
getRequestedTokenTypeBytes
public com.google.protobuf.ByteString getRequestedTokenTypeBytes()Type of the requested security token.
string requested_token_type = 5;- Specified by:
getRequestedTokenTypeBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for requestedTokenType.
-
setRequestedTokenType
Type of the requested security token.
string requested_token_type = 5;- Parameters:
value- The requestedTokenType to set.- Returns:
- This builder for chaining.
-
clearRequestedTokenType
Type of the requested security token.
string requested_token_type = 5;- Returns:
- This builder for chaining.
-
setRequestedTokenTypeBytes
public StsServiceCredentials.Builder setRequestedTokenTypeBytes(com.google.protobuf.ByteString value) Type of the requested security token.
string requested_token_type = 5;- Parameters:
value- The bytes for requestedTokenType to set.- Returns:
- This builder for chaining.
-
getSubjectTokenPath
The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.
string subject_token_path = 6 [(.validate.rules) = { ... }- Specified by:
getSubjectTokenPathin interfaceStsServiceCredentialsOrBuilder- Returns:
- The subjectTokenPath.
-
getSubjectTokenPathBytes
public com.google.protobuf.ByteString getSubjectTokenPathBytes()The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.
string subject_token_path = 6 [(.validate.rules) = { ... }- Specified by:
getSubjectTokenPathBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for subjectTokenPath.
-
setSubjectTokenPath
The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.
string subject_token_path = 6 [(.validate.rules) = { ... }- Parameters:
value- The subjectTokenPath to set.- Returns:
- This builder for chaining.
-
clearSubjectTokenPath
The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.
string subject_token_path = 6 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setSubjectTokenPathBytes
The path of subject token, a security token that represents the identity of the party on behalf of whom the request is being made.
string subject_token_path = 6 [(.validate.rules) = { ... }- Parameters:
value- The bytes for subjectTokenPath to set.- Returns:
- This builder for chaining.
-
getSubjectTokenType
Type of the subject token.
string subject_token_type = 7 [(.validate.rules) = { ... }- Specified by:
getSubjectTokenTypein interfaceStsServiceCredentialsOrBuilder- Returns:
- The subjectTokenType.
-
getSubjectTokenTypeBytes
public com.google.protobuf.ByteString getSubjectTokenTypeBytes()Type of the subject token.
string subject_token_type = 7 [(.validate.rules) = { ... }- Specified by:
getSubjectTokenTypeBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for subjectTokenType.
-
setSubjectTokenType
Type of the subject token.
string subject_token_type = 7 [(.validate.rules) = { ... }- Parameters:
value- The subjectTokenType to set.- Returns:
- This builder for chaining.
-
clearSubjectTokenType
Type of the subject token.
string subject_token_type = 7 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setSubjectTokenTypeBytes
Type of the subject token.
string subject_token_type = 7 [(.validate.rules) = { ... }- Parameters:
value- The bytes for subjectTokenType to set.- Returns:
- This builder for chaining.
-
getActorTokenPath
The path of actor token, a security token that represents the identity of the acting party. The acting party is authorized to use the requested security token and act on behalf of the subject.
string actor_token_path = 8;- Specified by:
getActorTokenPathin interfaceStsServiceCredentialsOrBuilder- Returns:
- The actorTokenPath.
-
getActorTokenPathBytes
public com.google.protobuf.ByteString getActorTokenPathBytes()The path of actor token, a security token that represents the identity of the acting party. The acting party is authorized to use the requested security token and act on behalf of the subject.
string actor_token_path = 8;- Specified by:
getActorTokenPathBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for actorTokenPath.
-
setActorTokenPath
The path of actor token, a security token that represents the identity of the acting party. The acting party is authorized to use the requested security token and act on behalf of the subject.
string actor_token_path = 8;- Parameters:
value- The actorTokenPath to set.- Returns:
- This builder for chaining.
-
clearActorTokenPath
The path of actor token, a security token that represents the identity of the acting party. The acting party is authorized to use the requested security token and act on behalf of the subject.
string actor_token_path = 8;- Returns:
- This builder for chaining.
-
setActorTokenPathBytes
The path of actor token, a security token that represents the identity of the acting party. The acting party is authorized to use the requested security token and act on behalf of the subject.
string actor_token_path = 8;- Parameters:
value- The bytes for actorTokenPath to set.- Returns:
- This builder for chaining.
-
getActorTokenType
Type of the actor token.
string actor_token_type = 9;- Specified by:
getActorTokenTypein interfaceStsServiceCredentialsOrBuilder- Returns:
- The actorTokenType.
-
getActorTokenTypeBytes
public com.google.protobuf.ByteString getActorTokenTypeBytes()Type of the actor token.
string actor_token_type = 9;- Specified by:
getActorTokenTypeBytesin interfaceStsServiceCredentialsOrBuilder- Returns:
- The bytes for actorTokenType.
-
setActorTokenType
Type of the actor token.
string actor_token_type = 9;- Parameters:
value- The actorTokenType to set.- Returns:
- This builder for chaining.
-
clearActorTokenType
Type of the actor token.
string actor_token_type = 9;- Returns:
- This builder for chaining.
-
setActorTokenTypeBytes
Type of the actor token.
string actor_token_type = 9;- Parameters:
value- The bytes for actorTokenType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final StsServiceCredentials.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-
mergeUnknownFields
public final StsServiceCredentials.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StsServiceCredentials.Builder>
-