Class SecretsConfigDump.DynamicSecret.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
com.google.protobuf.GeneratedMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
io.envoyproxy.envoy.admin.v3.SecretsConfigDump.DynamicSecret.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SecretsConfigDump.DynamicSecretOrBuilder, Cloneable
Enclosing class:
SecretsConfigDump.DynamicSecret

public static final class SecretsConfigDump.DynamicSecret.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecretsConfigDump.DynamicSecret.Builder> implements SecretsConfigDump.DynamicSecretOrBuilder
DynamicSecret contains secret information fetched via SDS.
[#next-free-field: 7]
Protobuf type envoy.admin.v3.SecretsConfigDump.DynamicSecret
  • Field Details

    • bitField0_

      private int bitField0_
    • name_

      private Object name_
    • versionInfo_

      private Object versionInfo_
    • lastUpdated_

      private com.google.protobuf.Timestamp lastUpdated_
    • lastUpdatedBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_
    • secret_

      private com.google.protobuf.Any secret_
    • secretBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> secretBuilder_
    • errorState_

      private UpdateFailureState errorState_
    • errorStateBuilder_

      private com.google.protobuf.SingleFieldBuilder<UpdateFailureState, UpdateFailureState.Builder, UpdateFailureStateOrBuilder> errorStateBuilder_
    • clientStatus_

      private int clientStatus_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
    • getDefaultInstanceForType

      public SecretsConfigDump.DynamicSecret getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SecretsConfigDump.DynamicSecret buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(SecretsConfigDump.DynamicSecret result)
    • mergeFrom

      public SecretsConfigDump.DynamicSecret.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
    • mergeFrom

      public SecretsConfigDump.DynamicSecret.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecretsConfigDump.DynamicSecret.Builder>
      Throws:
      IOException
    • getName

      public String getName()
      The name assigned to the secret.
      
      string name = 1;
      Specified by:
      getName in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      The name assigned to the secret.
      
      string name = 1;
      Specified by:
      getNameBytes in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The bytes for name.
    • setName

      The name assigned to the secret.
      
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      The name assigned to the secret.
      
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SecretsConfigDump.DynamicSecret.Builder setNameBytes(com.google.protobuf.ByteString value)
      The name assigned to the secret.
      
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getVersionInfo

      public String getVersionInfo()
      This is the per-resource version information.
      
      string version_info = 2;
      Specified by:
      getVersionInfo in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The versionInfo.
    • getVersionInfoBytes

      public com.google.protobuf.ByteString getVersionInfoBytes()
      This is the per-resource version information.
      
      string version_info = 2;
      Specified by:
      getVersionInfoBytes in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The bytes for versionInfo.
    • setVersionInfo

      public SecretsConfigDump.DynamicSecret.Builder setVersionInfo(String value)
      This is the per-resource version information.
      
      string version_info = 2;
      Parameters:
      value - The versionInfo to set.
      Returns:
      This builder for chaining.
    • clearVersionInfo

      public SecretsConfigDump.DynamicSecret.Builder clearVersionInfo()
      This is the per-resource version information.
      
      string version_info = 2;
      Returns:
      This builder for chaining.
    • setVersionInfoBytes

      public SecretsConfigDump.DynamicSecret.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
      This is the per-resource version information.
      
      string version_info = 2;
      Parameters:
      value - The bytes for versionInfo to set.
      Returns:
      This builder for chaining.
    • hasLastUpdated

      public boolean hasLastUpdated()
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
      Specified by:
      hasLastUpdated in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      Whether the lastUpdated field is set.
    • getLastUpdated

      public com.google.protobuf.Timestamp getLastUpdated()
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
      Specified by:
      getLastUpdated in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The lastUpdated.
    • setLastUpdated

      public SecretsConfigDump.DynamicSecret.Builder setLastUpdated(com.google.protobuf.Timestamp value)
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
    • setLastUpdated

      public SecretsConfigDump.DynamicSecret.Builder setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue)
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
    • mergeLastUpdated

      public SecretsConfigDump.DynamicSecret.Builder mergeLastUpdated(com.google.protobuf.Timestamp value)
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
    • clearLastUpdated

      public SecretsConfigDump.DynamicSecret.Builder clearLastUpdated()
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
    • getLastUpdatedBuilder

      public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder()
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
    • getLastUpdatedOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder()
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
      Specified by:
      getLastUpdatedOrBuilder in interface SecretsConfigDump.DynamicSecretOrBuilder
    • internalGetLastUpdatedFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> internalGetLastUpdatedFieldBuilder()
      The timestamp when the secret was last updated.
      
      .google.protobuf.Timestamp last_updated = 3;
    • hasSecret

      public boolean hasSecret()
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
      Specified by:
      hasSecret in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      Whether the secret field is set.
    • getSecret

      public com.google.protobuf.Any getSecret()
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
      Specified by:
      getSecret in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The secret.
    • setSecret

      public SecretsConfigDump.DynamicSecret.Builder setSecret(com.google.protobuf.Any value)
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
    • setSecret

      public SecretsConfigDump.DynamicSecret.Builder setSecret(com.google.protobuf.Any.Builder builderForValue)
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
    • mergeSecret

      public SecretsConfigDump.DynamicSecret.Builder mergeSecret(com.google.protobuf.Any value)
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
    • clearSecret

      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
    • getSecretBuilder

      public com.google.protobuf.Any.Builder getSecretBuilder()
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
    • getSecretOrBuilder

      public com.google.protobuf.AnyOrBuilder getSecretOrBuilder()
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
      Specified by:
      getSecretOrBuilder in interface SecretsConfigDump.DynamicSecretOrBuilder
    • internalGetSecretFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> internalGetSecretFieldBuilder()
      The actual secret information.
      Security sensitive information is redacted (replaced with "[redacted]") for
      private keys and passwords in TLS certificates.
      
      .google.protobuf.Any secret = 4;
    • hasErrorState

      public boolean hasErrorState()
      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
      Specified by:
      hasErrorState in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      Whether the errorState field is set.
    • getErrorState

      public UpdateFailureState getErrorState()
      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
      Specified by:
      getErrorState in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The errorState.
    • setErrorState

      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
    • setErrorState

      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
    • mergeErrorState

      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
    • clearErrorState

      public SecretsConfigDump.DynamicSecret.Builder clearErrorState()
      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
    • getErrorStateBuilder

      public UpdateFailureState.Builder getErrorStateBuilder()
      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
    • getErrorStateOrBuilder

      public UpdateFailureStateOrBuilder getErrorStateOrBuilder()
      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
      Specified by:
      getErrorStateOrBuilder in interface SecretsConfigDump.DynamicSecretOrBuilder
    • internalGetErrorStateFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<UpdateFailureState, UpdateFailureState.Builder, UpdateFailureStateOrBuilder> internalGetErrorStateFieldBuilder()
      Set if the last update failed, cleared after the next successful update.
      The *error_state* field contains the rejected version of this particular
      resource along with the reason and timestamp. For successfully updated or
      acknowledged resource, this field should be empty.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.UpdateFailureState error_state = 5;
    • getClientStatusValue

      public int getClientStatusValue()
      The client status of this resource.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.ClientResourceStatus client_status = 6;
      Specified by:
      getClientStatusValue in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The enum numeric value on the wire for clientStatus.
    • setClientStatusValue

      public SecretsConfigDump.DynamicSecret.Builder setClientStatusValue(int value)
      The client status of this resource.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.ClientResourceStatus client_status = 6;
      Parameters:
      value - The enum numeric value on the wire for clientStatus to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getClientStatus

      public ClientResourceStatus getClientStatus()
      The client status of this resource.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.ClientResourceStatus client_status = 6;
      Specified by:
      getClientStatus in interface SecretsConfigDump.DynamicSecretOrBuilder
      Returns:
      The clientStatus.
    • setClientStatus

      The client status of this resource.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.ClientResourceStatus client_status = 6;
      Parameters:
      value - The clientStatus to set.
      Returns:
      This builder for chaining.
    • clearClientStatus

      public SecretsConfigDump.DynamicSecret.Builder clearClientStatus()
      The client status of this resource.
      [#not-implemented-hide:]
      
      .envoy.admin.v3.ClientResourceStatus client_status = 6;
      Returns:
      This builder for chaining.