Class AppHubWorkload.Builder

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

public static final class AppHubWorkload.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppHubWorkload.Builder> implements AppHubWorkloadOrBuilder
 AppHubWorkload represents the App Hub Workload.
 
Protobuf type google.cloud.developerconnect.v1.AppHubWorkload
  • 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<AppHubWorkload.Builder>
    • clear

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

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

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

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

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

      public AppHubWorkload.Builder mergeFrom(AppHubWorkload other)
    • isInitialized

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

      public AppHubWorkload.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<AppHubWorkload.Builder>
      Throws:
      IOException
    • getWorkload

      public String getWorkload()
       Required. Output only. Immutable. The name of the App Hub Workload.
       Format:
       `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
       
      string workload = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkload in interface AppHubWorkloadOrBuilder
      Returns:
      The workload.
    • getWorkloadBytes

      public com.google.protobuf.ByteString getWorkloadBytes()
       Required. Output only. Immutable. The name of the App Hub Workload.
       Format:
       `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
       
      string workload = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWorkloadBytes in interface AppHubWorkloadOrBuilder
      Returns:
      The bytes for workload.
    • setWorkload

      public AppHubWorkload.Builder setWorkload(String value)
       Required. Output only. Immutable. The name of the App Hub Workload.
       Format:
       `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
       
      string workload = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The workload to set.
      Returns:
      This builder for chaining.
    • clearWorkload

      public AppHubWorkload.Builder clearWorkload()
       Required. Output only. Immutable. The name of the App Hub Workload.
       Format:
       `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
       
      string workload = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setWorkloadBytes

      public AppHubWorkload.Builder setWorkloadBytes(com.google.protobuf.ByteString value)
       Required. Output only. Immutable. The name of the App Hub Workload.
       Format:
       `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
       
      string workload = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for workload to set.
      Returns:
      This builder for chaining.
    • getCriticality

      public String getCriticality()
       Output only. The criticality of the App Hub Workload.
       
      string criticality = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCriticality in interface AppHubWorkloadOrBuilder
      Returns:
      The criticality.
    • getCriticalityBytes

      public com.google.protobuf.ByteString getCriticalityBytes()
       Output only. The criticality of the App Hub Workload.
       
      string criticality = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCriticalityBytes in interface AppHubWorkloadOrBuilder
      Returns:
      The bytes for criticality.
    • setCriticality

      public AppHubWorkload.Builder setCriticality(String value)
       Output only. The criticality of the App Hub Workload.
       
      string criticality = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The criticality to set.
      Returns:
      This builder for chaining.
    • clearCriticality

      public AppHubWorkload.Builder clearCriticality()
       Output only. The criticality of the App Hub Workload.
       
      string criticality = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCriticalityBytes

      public AppHubWorkload.Builder setCriticalityBytes(com.google.protobuf.ByteString value)
       Output only. The criticality of the App Hub Workload.
       
      string criticality = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for criticality to set.
      Returns:
      This builder for chaining.
    • getEnvironment

      public String getEnvironment()
       Output only. The environment of the App Hub Workload.
       
      string environment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnvironment in interface AppHubWorkloadOrBuilder
      Returns:
      The environment.
    • getEnvironmentBytes

      public com.google.protobuf.ByteString getEnvironmentBytes()
       Output only. The environment of the App Hub Workload.
       
      string environment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEnvironmentBytes in interface AppHubWorkloadOrBuilder
      Returns:
      The bytes for environment.
    • setEnvironment

      public AppHubWorkload.Builder setEnvironment(String value)
       Output only. The environment of the App Hub Workload.
       
      string environment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The environment to set.
      Returns:
      This builder for chaining.
    • clearEnvironment

      public AppHubWorkload.Builder clearEnvironment()
       Output only. The environment of the App Hub Workload.
       
      string environment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEnvironmentBytes

      public AppHubWorkload.Builder setEnvironmentBytes(com.google.protobuf.ByteString value)
       Output only. The environment of the App Hub Workload.
       
      string environment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for environment to set.
      Returns:
      This builder for chaining.