Class OrganizationImpact.Builder

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

public static final class OrganizationImpact.Builder extends com.google.protobuf.GeneratedMessage.Builder<OrganizationImpact.Builder> implements OrganizationImpactOrBuilder
 Represents impact to assets at organizational level. It is a read-only view
 and does not allow any modifications.
 
Protobuf type google.cloud.servicehealth.v1.OrganizationImpact
  • 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<OrganizationImpact.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<OrganizationImpact.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<OrganizationImpact.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public String getName()
       Output only. Identifier. Unique name of the organization impact in this
       scope including organization and location using the form
       `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.
      
       `organization_id` - ID (number) of the organization that contains the
       event. To get your `organization_id`, see
       [Getting your organization resource
       ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).<br>
       `organization_impact_id` - ID of the [OrganizationImpact
       resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface OrganizationImpactOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Identifier. Unique name of the organization impact in this
       scope including organization and location using the form
       `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.
      
       `organization_id` - ID (number) of the organization that contains the
       event. To get your `organization_id`, see
       [Getting your organization resource
       ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).<br>
       `organization_impact_id` - ID of the [OrganizationImpact
       resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface OrganizationImpactOrBuilder
      Returns:
      The bytes for name.
    • setName

      public OrganizationImpact.Builder setName(String value)
       Output only. Identifier. Unique name of the organization impact in this
       scope including organization and location using the form
       `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.
      
       `organization_id` - ID (number) of the organization that contains the
       event. To get your `organization_id`, see
       [Getting your organization resource
       ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).<br>
       `organization_impact_id` - ID of the [OrganizationImpact
       resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public OrganizationImpact.Builder clearName()
       Output only. Identifier. Unique name of the organization impact in this
       scope including organization and location using the form
       `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.
      
       `organization_id` - ID (number) of the organization that contains the
       event. To get your `organization_id`, see
       [Getting your organization resource
       ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).<br>
       `organization_impact_id` - ID of the [OrganizationImpact
       resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public OrganizationImpact.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. Unique name of the organization impact in this
       scope including organization and location using the form
       `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.
      
       `organization_id` - ID (number) of the organization that contains the
       event. To get your `organization_id`, see
       [Getting your organization resource
       ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).<br>
       `organization_impact_id` - ID of the [OrganizationImpact
       resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEventsList

      public com.google.protobuf.ProtocolStringList getEventsList()
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getEventsList in interface OrganizationImpactOrBuilder
      Returns:
      A list containing the events.
    • getEventsCount

      public int getEventsCount()
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getEventsCount in interface OrganizationImpactOrBuilder
      Returns:
      The count of events.
    • getEvents

      public String getEvents(int index)
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getEvents in interface OrganizationImpactOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The events at the given index.
    • getEventsBytes

      public com.google.protobuf.ByteString getEventsBytes(int index)
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getEventsBytes in interface OrganizationImpactOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the events at the given index.
    • setEvents

      public OrganizationImpact.Builder setEvents(int index, String value)
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The events to set.
      Returns:
      This builder for chaining.
    • addEvents

      public OrganizationImpact.Builder addEvents(String value)
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The events to add.
      Returns:
      This builder for chaining.
    • addAllEvents

      public OrganizationImpact.Builder addAllEvents(Iterable<String> values)
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The events to add.
      Returns:
      This builder for chaining.
    • clearEvents

      public OrganizationImpact.Builder clearEvents()
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addEventsBytes

      public OrganizationImpact.Builder addEventsBytes(com.google.protobuf.ByteString value)
       Output only. A list of event names impacting the asset.
       
      repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the events to add.
      Returns:
      This builder for chaining.
    • hasAsset

      public boolean hasAsset()
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAsset in interface OrganizationImpactOrBuilder
      Returns:
      Whether the asset field is set.
    • getAsset

      public Asset getAsset()
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAsset in interface OrganizationImpactOrBuilder
      Returns:
      The asset.
    • setAsset

      public OrganizationImpact.Builder setAsset(Asset value)
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAsset

      public OrganizationImpact.Builder setAsset(Asset.Builder builderForValue)
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeAsset

      public OrganizationImpact.Builder mergeAsset(Asset value)
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAsset

      public OrganizationImpact.Builder clearAsset()
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAssetBuilder

      public Asset.Builder getAssetBuilder()
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAssetOrBuilder

      public AssetOrBuilder getAssetOrBuilder()
       Output only. Google Cloud asset possibly impacted by the specified events.
       
      .google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAssetOrBuilder in interface OrganizationImpactOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface OrganizationImpactOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface OrganizationImpactOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public OrganizationImpact.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public OrganizationImpact.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public OrganizationImpact.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public OrganizationImpact.Builder clearUpdateTime()
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time when the affected project was last modified.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface OrganizationImpactOrBuilder