Class TrustConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TrustConfig.Builder>
com.google.cloud.certificatemanager.v1.TrustConfig.Builder
All Implemented Interfaces:
TrustConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TrustConfig

public static final class TrustConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrustConfig.Builder> implements TrustConfigOrBuilder
 Defines a trust config.
 
Protobuf type google.cloud.certificatemanager.v1.TrustConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TrustConfig.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TrustConfig.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TrustConfig.Builder>
    • clear

      public TrustConfig.Builder 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<TrustConfig.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<TrustConfig.Builder>
    • getDefaultInstanceForType

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

      public TrustConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TrustConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TrustConfig.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<TrustConfig.Builder>
    • mergeFrom

      public TrustConfig.Builder mergeFrom(TrustConfig other)
    • isInitialized

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

      public TrustConfig.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<TrustConfig.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       A user-defined name of the trust config. TrustConfig names must be
       unique globally and match pattern
       `projects/*/locations/*/trustConfigs/*`.
       
      string name = 1;
      Specified by:
      getName in interface TrustConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       A user-defined name of the trust config. TrustConfig names must be
       unique globally and match pattern
       `projects/*/locations/*/trustConfigs/*`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface TrustConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TrustConfig.Builder setName(String value)
       A user-defined name of the trust config. TrustConfig names must be
       unique globally and match pattern
       `projects/*/locations/*/trustConfigs/*`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public TrustConfig.Builder clearName()
       A user-defined name of the trust config. TrustConfig names must be
       unique globally and match pattern
       `projects/*/locations/*/trustConfigs/*`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public TrustConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       A user-defined name of the trust config. TrustConfig names must be
       unique globally and match pattern
       `projects/*/locations/*/trustConfigs/*`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface TrustConfigOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface TrustConfigOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public TrustConfig.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public TrustConfig.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public TrustConfig.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public TrustConfig.Builder clearCreateTime()
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface TrustConfigOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface TrustConfigOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface TrustConfigOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public TrustConfig.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public TrustConfig.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public TrustConfig.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public TrustConfig.Builder clearUpdateTime()
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last update timestamp of a TrustConfig.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface TrustConfigOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: TrustConfigOrBuilder
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface TrustConfigOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface TrustConfigOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface TrustConfigOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface TrustConfigOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface TrustConfigOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface TrustConfigOrBuilder
    • clearLabels

      public TrustConfig.Builder clearLabels()
    • removeLabels

      public TrustConfig.Builder removeLabels(String key)
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public TrustConfig.Builder putLabels(String key, String value)
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
    • putAllLabels

      public TrustConfig.Builder putAllLabels(Map<String,String> values)
       Set of labels associated with a TrustConfig.
       
      map<string, string> labels = 4;
    • getDescription

      public String getDescription()
       One or more paragraphs of text description of a TrustConfig.
       
      string description = 5;
      Specified by:
      getDescription in interface TrustConfigOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       One or more paragraphs of text description of a TrustConfig.
       
      string description = 5;
      Specified by:
      getDescriptionBytes in interface TrustConfigOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TrustConfig.Builder setDescription(String value)
       One or more paragraphs of text description of a TrustConfig.
       
      string description = 5;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TrustConfig.Builder clearDescription()
       One or more paragraphs of text description of a TrustConfig.
       
      string description = 5;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TrustConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       One or more paragraphs of text description of a TrustConfig.
       
      string description = 5;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6;
      Specified by:
      getEtag in interface TrustConfigOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6;
      Specified by:
      getEtagBytes in interface TrustConfigOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public TrustConfig.Builder setEtag(String value)
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public TrustConfig.Builder clearEtag()
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public TrustConfig.Builder setEtagBytes(com.google.protobuf.ByteString value)
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getTrustStoresList

      public List<TrustConfig.TrustStore> getTrustStoresList()
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
      Specified by:
      getTrustStoresList in interface TrustConfigOrBuilder
    • getTrustStoresCount

      public int getTrustStoresCount()
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
      Specified by:
      getTrustStoresCount in interface TrustConfigOrBuilder
    • getTrustStores

      public TrustConfig.TrustStore getTrustStores(int index)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
      Specified by:
      getTrustStores in interface TrustConfigOrBuilder
    • setTrustStores

      public TrustConfig.Builder setTrustStores(int index, TrustConfig.TrustStore value)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • setTrustStores

      public TrustConfig.Builder setTrustStores(int index, TrustConfig.TrustStore.Builder builderForValue)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • addTrustStores

      public TrustConfig.Builder addTrustStores(TrustConfig.TrustStore value)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • addTrustStores

      public TrustConfig.Builder addTrustStores(int index, TrustConfig.TrustStore value)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • addTrustStores

      public TrustConfig.Builder addTrustStores(TrustConfig.TrustStore.Builder builderForValue)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • addTrustStores

      public TrustConfig.Builder addTrustStores(int index, TrustConfig.TrustStore.Builder builderForValue)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • addAllTrustStores

      public TrustConfig.Builder addAllTrustStores(Iterable<? extends TrustConfig.TrustStore> values)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • clearTrustStores

      public TrustConfig.Builder clearTrustStores()
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • removeTrustStores

      public TrustConfig.Builder removeTrustStores(int index)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • getTrustStoresBuilder

      public TrustConfig.TrustStore.Builder getTrustStoresBuilder(int index)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • getTrustStoresOrBuilder

      public TrustConfig.TrustStoreOrBuilder getTrustStoresOrBuilder(int index)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
      Specified by:
      getTrustStoresOrBuilder in interface TrustConfigOrBuilder
    • getTrustStoresOrBuilderList

      public List<? extends TrustConfig.TrustStoreOrBuilder> getTrustStoresOrBuilderList()
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
      Specified by:
      getTrustStoresOrBuilderList in interface TrustConfigOrBuilder
    • addTrustStoresBuilder

      public TrustConfig.TrustStore.Builder addTrustStoresBuilder()
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • addTrustStoresBuilder

      public TrustConfig.TrustStore.Builder addTrustStoresBuilder(int index)
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;
    • getTrustStoresBuilderList

      public List<TrustConfig.TrustStore.Builder> getTrustStoresBuilderList()
       Set of trust stores to perform validation against.
      
       This field is supported when TrustConfig is configured with Load Balancers,
       currently not supported for SPIFFE certificate validation.
      
       Only one TrustStore specified is currently allowed.
       
      repeated .google.cloud.certificatemanager.v1.TrustConfig.TrustStore trust_stores = 8;