java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant
All Implemented Interfaces:
TenantOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Tenant extends com.google.protobuf.GeneratedMessage implements TenantOrBuilder
 Tenant represents the service producer side of an instance of the
 service created based on a request from a consumer. In a typical scenario a
 Tenant has a one-to-one mapping with a resource given out to a service
 consumer.

 Example:

 tenant:
 name: "projects/svc1/locations/loc/tenants/inst-068afff8"
 consumer_resource: "projects/gshoe/locations/loc/shoes/black-shoe"
 
Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant
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()
       Identifier. The resource name (full URI of the resource) following the
       standard naming scheme:
      
       "projects/{project}/locations/{location}/tenants/{tenant}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface TenantOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name (full URI of the resource) following the
       standard naming scheme:
      
       "projects/{project}/locations/{location}/tenants/{tenant}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface TenantOrBuilder
      Returns:
      The bytes for name.
    • getConsumerResource

      public String getConsumerResource()
       Optional. Immutable. A reference to the consumer resource this SaaS Tenant
       is representing.
      
       The relationship with a consumer resource can be used by App Lifecycle
       Manager for retrieving consumer-defined settings and policies such as
       maintenance policies (using Unified Maintenance Policy API).
       
      string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getConsumerResource in interface TenantOrBuilder
      Returns:
      The consumerResource.
    • getConsumerResourceBytes

      public com.google.protobuf.ByteString getConsumerResourceBytes()
       Optional. Immutable. A reference to the consumer resource this SaaS Tenant
       is representing.
      
       The relationship with a consumer resource can be used by App Lifecycle
       Manager for retrieving consumer-defined settings and policies such as
       maintenance policies (using Unified Maintenance Policy API).
       
      string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getConsumerResourceBytes in interface TenantOrBuilder
      Returns:
      The bytes for consumerResource.
    • getSaas

      public String getSaas()
       Required. Immutable. A reference to the Saas that defines the product
       (managed service) that the producer wants to manage with App Lifecycle
       Manager. Part of the App Lifecycle Manager common data model.
       
      string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getSaas in interface TenantOrBuilder
      Returns:
      The saas.
    • getSaasBytes

      public com.google.protobuf.ByteString getSaasBytes()
       Required. Immutable. A reference to the Saas that defines the product
       (managed service) that the producer wants to manage with App Lifecycle
       Manager. Part of the App Lifecycle Manager common data model.
       
      string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getSaasBytes in interface TenantOrBuilder
      Returns:
      The bytes for saas.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: TenantOrBuilder
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface TenantOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface TenantOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface TenantOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface TenantOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface TenantOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: TenantOrBuilder
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface TenantOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface TenantOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface TenantOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface TenantOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface TenantOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface TenantOrBuilder
    • getUid

      public String getUid()
       Output only. The unique identifier of the resource. UID is unique in the
       time and space for this resource within the scope of the service. It is
       typically generated by the server on successful creation of a resource
       and must not be changed. UID is used to uniquely identify resources
       with resource name reuses. This should be a UUID4.
       
      string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface TenantOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. The unique identifier of the resource. UID is unique in the
       time and space for this resource within the scope of the service. It is
       typically generated by the server on successful creation of a resource
       and must not be changed. UID is used to uniquely identify resources
       with resource name reuses. This should be a UUID4.
       
      string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface TenantOrBuilder
      Returns:
      The bytes for uid.
    • getEtag

      public String getEtag()
       Output only. An opaque value that uniquely identifies a version or
       generation of a resource. It can be used to confirm that the client
       and server agree on the ordering of a resource being written.
       
      string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface TenantOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. An opaque value that uniquely identifies a version or
       generation of a resource. It can be used to confirm that the client
       and server agree on the ordering of a resource being written.
       
      string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface TenantOrBuilder
      Returns:
      The bytes for etag.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface TenantOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface TenantOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface TenantOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface TenantOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface TenantOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface TenantOrBuilder
    • 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 Tenant parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Tenant.Builder newBuilder()
    • newBuilder

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

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

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

      public static Tenant getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Tenant> 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 Tenant getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder