
io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/extensions/common/aws/v3/credential_provider.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.extensions.common.aws.v3;
/**
*
* Configuration to use `AssumeRoleWithWebIdentity <https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html>`_
* to retrieve AWS credentials.
*
*
* Protobuf type {@code envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider}
*/
public final class AssumeRoleWithWebIdentityCredentialProvider extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider)
AssumeRoleWithWebIdentityCredentialProviderOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssumeRoleWithWebIdentityCredentialProvider.newBuilder() to construct.
private AssumeRoleWithWebIdentityCredentialProvider(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssumeRoleWithWebIdentityCredentialProvider() {
roleArn_ = "";
roleSessionName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssumeRoleWithWebIdentityCredentialProvider();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.extensions.common.aws.v3.CredentialProviderProto.internal_static_envoy_extensions_common_aws_v3_AssumeRoleWithWebIdentityCredentialProvider_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.extensions.common.aws.v3.CredentialProviderProto.internal_static_envoy_extensions_common_aws_v3_AssumeRoleWithWebIdentityCredentialProvider_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider.class, io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider.Builder.class);
}
private int bitField0_;
public static final int WEB_IDENTITY_TOKEN_DATA_SOURCE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.DataSource webIdentityTokenDataSource_;
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
* @return Whether the webIdentityTokenDataSource field is set.
*/
@java.lang.Override
public boolean hasWebIdentityTokenDataSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
* @return The webIdentityTokenDataSource.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.DataSource getWebIdentityTokenDataSource() {
return webIdentityTokenDataSource_ == null ? io.envoyproxy.envoy.config.core.v3.DataSource.getDefaultInstance() : webIdentityTokenDataSource_;
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.DataSourceOrBuilder getWebIdentityTokenDataSourceOrBuilder() {
return webIdentityTokenDataSource_ == null ? io.envoyproxy.envoy.config.core.v3.DataSource.getDefaultInstance() : webIdentityTokenDataSource_;
}
public static final int ROLE_ARN_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object roleArn_ = "";
/**
*
* The ARN of the role to assume.
*
*
* string role_arn = 2 [(.validate.rules) = { ... }
* @return The roleArn.
*/
@java.lang.Override
public java.lang.String getRoleArn() {
java.lang.Object ref = roleArn_;
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();
roleArn_ = s;
return s;
}
}
/**
*
* The ARN of the role to assume.
*
*
* string role_arn = 2 [(.validate.rules) = { ... }
* @return The bytes for roleArn.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRoleArnBytes() {
java.lang.Object ref = roleArn_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roleArn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLE_SESSION_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object roleSessionName_ = "";
/**
*
* Optional role session name to use in AssumeRoleWithWebIdentity API call.
*
*
* string role_session_name = 3;
* @return The roleSessionName.
*/
@java.lang.Override
public java.lang.String getRoleSessionName() {
java.lang.Object ref = roleSessionName_;
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();
roleSessionName_ = s;
return s;
}
}
/**
*
* Optional role session name to use in AssumeRoleWithWebIdentity API call.
*
*
* string role_session_name = 3;
* @return The bytes for roleSessionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRoleSessionNameBytes() {
java.lang.Object ref = roleSessionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roleSessionName_ = 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getWebIdentityTokenDataSource());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roleArn_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roleArn_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roleSessionName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, roleSessionName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getWebIdentityTokenDataSource());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roleArn_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, roleArn_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roleSessionName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, roleSessionName_);
}
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 io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider)) {
return super.equals(obj);
}
io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider other = (io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider) obj;
if (hasWebIdentityTokenDataSource() != other.hasWebIdentityTokenDataSource()) return false;
if (hasWebIdentityTokenDataSource()) {
if (!getWebIdentityTokenDataSource()
.equals(other.getWebIdentityTokenDataSource())) return false;
}
if (!getRoleArn()
.equals(other.getRoleArn())) return false;
if (!getRoleSessionName()
.equals(other.getRoleSessionName())) 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();
if (hasWebIdentityTokenDataSource()) {
hash = (37 * hash) + WEB_IDENTITY_TOKEN_DATA_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getWebIdentityTokenDataSource().hashCode();
}
hash = (37 * hash) + ROLE_ARN_FIELD_NUMBER;
hash = (53 * hash) + getRoleArn().hashCode();
hash = (37 * hash) + ROLE_SESSION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRoleSessionName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider 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 io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider 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 io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider 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(io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider 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;
}
/**
*
* Configuration to use `AssumeRoleWithWebIdentity <https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html>`_
* to retrieve AWS credentials.
*
*
* Protobuf type {@code envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider)
io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProviderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.extensions.common.aws.v3.CredentialProviderProto.internal_static_envoy_extensions_common_aws_v3_AssumeRoleWithWebIdentityCredentialProvider_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.extensions.common.aws.v3.CredentialProviderProto.internal_static_envoy_extensions_common_aws_v3_AssumeRoleWithWebIdentityCredentialProvider_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider.class, io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider.Builder.class);
}
// Construct using io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getWebIdentityTokenDataSourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
webIdentityTokenDataSource_ = null;
if (webIdentityTokenDataSourceBuilder_ != null) {
webIdentityTokenDataSourceBuilder_.dispose();
webIdentityTokenDataSourceBuilder_ = null;
}
roleArn_ = "";
roleSessionName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.extensions.common.aws.v3.CredentialProviderProto.internal_static_envoy_extensions_common_aws_v3_AssumeRoleWithWebIdentityCredentialProvider_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider getDefaultInstanceForType() {
return io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider build() {
io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider buildPartial() {
io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider result = new io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.webIdentityTokenDataSource_ = webIdentityTokenDataSourceBuilder_ == null
? webIdentityTokenDataSource_
: webIdentityTokenDataSourceBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.roleArn_ = roleArn_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.roleSessionName_ = roleSessionName_;
}
result.bitField0_ |= to_bitField0_;
}
@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 io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider) {
return mergeFrom((io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider other) {
if (other == io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider.getDefaultInstance()) return this;
if (other.hasWebIdentityTokenDataSource()) {
mergeWebIdentityTokenDataSource(other.getWebIdentityTokenDataSource());
}
if (!other.getRoleArn().isEmpty()) {
roleArn_ = other.roleArn_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getRoleSessionName().isEmpty()) {
roleSessionName_ = other.roleSessionName_;
bitField0_ |= 0x00000004;
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: {
input.readMessage(
getWebIdentityTokenDataSourceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
roleArn_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
roleSessionName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
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 io.envoyproxy.envoy.config.core.v3.DataSource webIdentityTokenDataSource_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.DataSource, io.envoyproxy.envoy.config.core.v3.DataSource.Builder, io.envoyproxy.envoy.config.core.v3.DataSourceOrBuilder> webIdentityTokenDataSourceBuilder_;
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
* @return Whether the webIdentityTokenDataSource field is set.
*/
public boolean hasWebIdentityTokenDataSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
* @return The webIdentityTokenDataSource.
*/
public io.envoyproxy.envoy.config.core.v3.DataSource getWebIdentityTokenDataSource() {
if (webIdentityTokenDataSourceBuilder_ == null) {
return webIdentityTokenDataSource_ == null ? io.envoyproxy.envoy.config.core.v3.DataSource.getDefaultInstance() : webIdentityTokenDataSource_;
} else {
return webIdentityTokenDataSourceBuilder_.getMessage();
}
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
public Builder setWebIdentityTokenDataSource(io.envoyproxy.envoy.config.core.v3.DataSource value) {
if (webIdentityTokenDataSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
webIdentityTokenDataSource_ = value;
} else {
webIdentityTokenDataSourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
public Builder setWebIdentityTokenDataSource(
io.envoyproxy.envoy.config.core.v3.DataSource.Builder builderForValue) {
if (webIdentityTokenDataSourceBuilder_ == null) {
webIdentityTokenDataSource_ = builderForValue.build();
} else {
webIdentityTokenDataSourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
public Builder mergeWebIdentityTokenDataSource(io.envoyproxy.envoy.config.core.v3.DataSource value) {
if (webIdentityTokenDataSourceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
webIdentityTokenDataSource_ != null &&
webIdentityTokenDataSource_ != io.envoyproxy.envoy.config.core.v3.DataSource.getDefaultInstance()) {
getWebIdentityTokenDataSourceBuilder().mergeFrom(value);
} else {
webIdentityTokenDataSource_ = value;
}
} else {
webIdentityTokenDataSourceBuilder_.mergeFrom(value);
}
if (webIdentityTokenDataSource_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
public Builder clearWebIdentityTokenDataSource() {
bitField0_ = (bitField0_ & ~0x00000001);
webIdentityTokenDataSource_ = null;
if (webIdentityTokenDataSourceBuilder_ != null) {
webIdentityTokenDataSourceBuilder_.dispose();
webIdentityTokenDataSourceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
public io.envoyproxy.envoy.config.core.v3.DataSource.Builder getWebIdentityTokenDataSourceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getWebIdentityTokenDataSourceFieldBuilder().getBuilder();
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
public io.envoyproxy.envoy.config.core.v3.DataSourceOrBuilder getWebIdentityTokenDataSourceOrBuilder() {
if (webIdentityTokenDataSourceBuilder_ != null) {
return webIdentityTokenDataSourceBuilder_.getMessageOrBuilder();
} else {
return webIdentityTokenDataSource_ == null ?
io.envoyproxy.envoy.config.core.v3.DataSource.getDefaultInstance() : webIdentityTokenDataSource_;
}
}
/**
*
* Data source for a web identity token that is provided by the identity provider to assume the role.
* When using this data source, even if a ``watched_directory`` is provided, the token file will only be re-read when the credentials
* returned from AssumeRoleWithWebIdentity expire.
*
*
* .envoy.config.core.v3.DataSource web_identity_token_data_source = 1 [(.udpa.annotations.sensitive) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.DataSource, io.envoyproxy.envoy.config.core.v3.DataSource.Builder, io.envoyproxy.envoy.config.core.v3.DataSourceOrBuilder>
getWebIdentityTokenDataSourceFieldBuilder() {
if (webIdentityTokenDataSourceBuilder_ == null) {
webIdentityTokenDataSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.DataSource, io.envoyproxy.envoy.config.core.v3.DataSource.Builder, io.envoyproxy.envoy.config.core.v3.DataSourceOrBuilder>(
getWebIdentityTokenDataSource(),
getParentForChildren(),
isClean());
webIdentityTokenDataSource_ = null;
}
return webIdentityTokenDataSourceBuilder_;
}
private java.lang.Object roleArn_ = "";
/**
*
* The ARN of the role to assume.
*
*
* string role_arn = 2 [(.validate.rules) = { ... }
* @return The roleArn.
*/
public java.lang.String getRoleArn() {
java.lang.Object ref = roleArn_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
roleArn_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ARN of the role to assume.
*
*
* string role_arn = 2 [(.validate.rules) = { ... }
* @return The bytes for roleArn.
*/
public com.google.protobuf.ByteString
getRoleArnBytes() {
java.lang.Object ref = roleArn_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roleArn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ARN of the role to assume.
*
*
* string role_arn = 2 [(.validate.rules) = { ... }
* @param value The roleArn to set.
* @return This builder for chaining.
*/
public Builder setRoleArn(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
roleArn_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The ARN of the role to assume.
*
*
* string role_arn = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearRoleArn() {
roleArn_ = getDefaultInstance().getRoleArn();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The ARN of the role to assume.
*
*
* string role_arn = 2 [(.validate.rules) = { ... }
* @param value The bytes for roleArn to set.
* @return This builder for chaining.
*/
public Builder setRoleArnBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
roleArn_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object roleSessionName_ = "";
/**
*
* Optional role session name to use in AssumeRoleWithWebIdentity API call.
*
*
* string role_session_name = 3;
* @return The roleSessionName.
*/
public java.lang.String getRoleSessionName() {
java.lang.Object ref = roleSessionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
roleSessionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional role session name to use in AssumeRoleWithWebIdentity API call.
*
*
* string role_session_name = 3;
* @return The bytes for roleSessionName.
*/
public com.google.protobuf.ByteString
getRoleSessionNameBytes() {
java.lang.Object ref = roleSessionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roleSessionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional role session name to use in AssumeRoleWithWebIdentity API call.
*
*
* string role_session_name = 3;
* @param value The roleSessionName to set.
* @return This builder for chaining.
*/
public Builder setRoleSessionName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
roleSessionName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Optional role session name to use in AssumeRoleWithWebIdentity API call.
*
*
* string role_session_name = 3;
* @return This builder for chaining.
*/
public Builder clearRoleSessionName() {
roleSessionName_ = getDefaultInstance().getRoleSessionName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Optional role session name to use in AssumeRoleWithWebIdentity API call.
*
*
* string role_session_name = 3;
* @param value The bytes for roleSessionName to set.
* @return This builder for chaining.
*/
public Builder setRoleSessionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
roleSessionName_ = value;
bitField0_ |= 0x00000004;
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:envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider)
}
// @@protoc_insertion_point(class_scope:envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider)
private static final io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider();
}
public static io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssumeRoleWithWebIdentityCredentialProvider 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 io.envoyproxy.envoy.extensions.common.aws.v3.AssumeRoleWithWebIdentityCredentialProvider getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy