Class Application.Builder

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

public static final class Application.Builder extends com.google.protobuf.GeneratedMessage.Builder<Application.Builder> implements ApplicationOrBuilder
 Application defines the governance boundary for App Hub entities that
 perform a logical end-to-end business function.
 App Hub supports application level IAM permission to align with governance
 requirements.
 
Protobuf type google.cloud.apphub.v1.Application
  • 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<Application.Builder>
    • clear

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

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

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

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

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

      public Application.Builder mergeFrom(Application other)
    • isInitialized

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

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

      public String getName()
       Identifier. The resource name of an Application. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ApplicationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of an Application. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ApplicationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Application.Builder setName(String value)
       Identifier. The resource name of an Application. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Application.Builder clearName()
       Identifier. The resource name of an Application. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Application.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of an Application. Format:
       `"projects/{host-project-id}/locations/{location}/applications/{application-id}"`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. User-defined name for the Application.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface ApplicationOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. User-defined name for the Application.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface ApplicationOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Application.Builder setDisplayName(String value)
       Optional. User-defined name for the Application.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Application.Builder clearDisplayName()
       Optional. User-defined name for the Application.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Application.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. User-defined name for the Application.
       Can have a maximum length of 63 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. User-defined description of an Application.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface ApplicationOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. User-defined description of an Application.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface ApplicationOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Application.Builder setDescription(String value)
       Optional. User-defined description of an Application.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Application.Builder clearDescription()
       Optional. User-defined description of an Application.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Application.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. User-defined description of an Application.
       Can have a maximum length of 2048 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasAttributes

      public boolean hasAttributes()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAttributes in interface ApplicationOrBuilder
      Returns:
      Whether the attributes field is set.
    • getAttributes

      public Attributes getAttributes()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributes in interface ApplicationOrBuilder
      Returns:
      The attributes.
    • setAttributes

      public Application.Builder setAttributes(Attributes value)
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setAttributes

      public Application.Builder setAttributes(Attributes.Builder builderForValue)
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAttributes

      public Application.Builder mergeAttributes(Attributes value)
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearAttributes

      public Application.Builder clearAttributes()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getAttributesBuilder

      public Attributes.Builder getAttributesBuilder()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getAttributesOrBuilder

      public AttributesOrBuilder getAttributesOrBuilder()
       Optional. Consumer provided attributes.
       
      .google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrBuilder in interface ApplicationOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ApplicationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ApplicationOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Application.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Application.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Application.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Application.Builder clearCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ApplicationOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ApplicationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ApplicationOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Application.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Application.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Application.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Application.Builder clearUpdateTime()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update time.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ApplicationOrBuilder
    • hasScope

      public boolean hasScope()
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasScope in interface ApplicationOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public Scope getScope()
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getScope in interface ApplicationOrBuilder
      Returns:
      The scope.
    • setScope

      public Application.Builder setScope(Scope value)
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • setScope

      public Application.Builder setScope(Scope.Builder builderForValue)
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • mergeScope

      public Application.Builder mergeScope(Scope value)
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • clearScope

      public Application.Builder clearScope()
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getScopeBuilder

      public Scope.Builder getScopeBuilder()
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getScopeOrBuilder

      public ScopeOrBuilder getScopeOrBuilder()
       Required. Immutable. Defines what data can be included into this
       Application. Limits which Services and Workloads can be registered.
       
      .google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getScopeOrBuilder in interface ApplicationOrBuilder
    • getUid

      public String getUid()
       Output only. A universally unique identifier (in UUID4 format) for the
       `Application`.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface ApplicationOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. A universally unique identifier (in UUID4 format) for the
       `Application`.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface ApplicationOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Application.Builder setUid(String value)
       Output only. A universally unique identifier (in UUID4 format) for the
       `Application`.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Application.Builder clearUid()
       Output only. A universally unique identifier (in UUID4 format) for the
       `Application`.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public Application.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. A universally unique identifier (in UUID4 format) for the
       `Application`.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. Application state.
       
      .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ApplicationOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Application.Builder setStateValue(int value)
       Output only. Application state.
       
      .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Application.State getState()
       Output only. Application state.
       
      .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ApplicationOrBuilder
      Returns:
      The state.
    • setState

      public Application.Builder setState(Application.State value)
       Output only. Application state.
       
      .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Application.Builder clearState()
       Output only. Application state.
       
      .google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.