Class TrustConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.certificatemanager.v1.TrustConfig
All Implemented Interfaces:
TrustConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class TrustConfig extends com.google.protobuf.GeneratedMessage implements TrustConfigOrBuilder
 Defines a trust config.
 
Protobuf type google.cloud.certificatemanager.v1.TrustConfig
See Also:
  • Field Details

  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TrustConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TrustConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TrustConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TrustConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TrustConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TrustConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TrustConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TrustConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TrustConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TrustConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TrustConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TrustConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static TrustConfig.Builder newBuilder()
    • newBuilder

      public static TrustConfig.Builder newBuilder(TrustConfig prototype)
    • toBuilder

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

      protected TrustConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TrustConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TrustConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<TrustConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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