Class SourceMetadata.Builder

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

public static final class SourceMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<SourceMetadata.Builder> implements SourceMetadataOrBuilder
 SourceMetadata represents the metadata for a resource at the source.
 
Protobuf type google.cloud.apihub.v1.SourceMetadata
  • 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<SourceMetadata.Builder>
    • clear

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

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

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

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

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

      public SourceMetadata.Builder mergeFrom(SourceMetadata other)
    • isInitialized

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

      public SourceMetadata.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<SourceMetadata.Builder>
      Throws:
      IOException
    • getSourceCase

      public SourceMetadata.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface SourceMetadataOrBuilder
    • clearSource

      public SourceMetadata.Builder clearSource()
    • hasPluginInstanceActionSource

      public boolean hasPluginInstanceActionSource()
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPluginInstanceActionSource in interface SourceMetadataOrBuilder
      Returns:
      Whether the pluginInstanceActionSource field is set.
    • getPluginInstanceActionSource

      public SourceMetadata.PluginInstanceActionSource getPluginInstanceActionSource()
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPluginInstanceActionSource in interface SourceMetadataOrBuilder
      Returns:
      The pluginInstanceActionSource.
    • setPluginInstanceActionSource

      public SourceMetadata.Builder setPluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource value)
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPluginInstanceActionSource

      public SourceMetadata.Builder setPluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource.Builder builderForValue)
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePluginInstanceActionSource

      public SourceMetadata.Builder mergePluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource value)
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPluginInstanceActionSource

      public SourceMetadata.Builder clearPluginInstanceActionSource()
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPluginInstanceActionSourceBuilder

      public SourceMetadata.PluginInstanceActionSource.Builder getPluginInstanceActionSourceBuilder()
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPluginInstanceActionSourceOrBuilder

      public SourceMetadata.PluginInstanceActionSourceOrBuilder getPluginInstanceActionSourceOrBuilder()
       Output only. The source of the resource is a plugin instance action.
       
      .google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPluginInstanceActionSourceOrBuilder in interface SourceMetadataOrBuilder
    • getSourceTypeValue

      public int getSourceTypeValue()
       Output only. The type of the source.
       
      .google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceTypeValue in interface SourceMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • setSourceTypeValue

      public SourceMetadata.Builder setSourceTypeValue(int value)
       Output only. The type of the source.
       
      .google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for sourceType to set.
      Returns:
      This builder for chaining.
    • getSourceType

      public SourceMetadata.SourceType getSourceType()
       Output only. The type of the source.
       
      .google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceType in interface SourceMetadataOrBuilder
      Returns:
      The sourceType.
    • setSourceType

      public SourceMetadata.Builder setSourceType(SourceMetadata.SourceType value)
       Output only. The type of the source.
       
      .google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The sourceType to set.
      Returns:
      This builder for chaining.
    • clearSourceType

      public SourceMetadata.Builder clearSourceType()
       Output only. The type of the source.
       
      .google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getOriginalResourceId

      public String getOriginalResourceId()
       Output only. The unique identifier of the resource at the source.
       
      string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOriginalResourceId in interface SourceMetadataOrBuilder
      Returns:
      The originalResourceId.
    • getOriginalResourceIdBytes

      public com.google.protobuf.ByteString getOriginalResourceIdBytes()
       Output only. The unique identifier of the resource at the source.
       
      string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOriginalResourceIdBytes in interface SourceMetadataOrBuilder
      Returns:
      The bytes for originalResourceId.
    • setOriginalResourceId

      public SourceMetadata.Builder setOriginalResourceId(String value)
       Output only. The unique identifier of the resource at the source.
       
      string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The originalResourceId to set.
      Returns:
      This builder for chaining.
    • clearOriginalResourceId

      public SourceMetadata.Builder clearOriginalResourceId()
       Output only. The unique identifier of the resource at the source.
       
      string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setOriginalResourceIdBytes

      public SourceMetadata.Builder setOriginalResourceIdBytes(com.google.protobuf.ByteString value)
       Output only. The unique identifier of the resource at the source.
       
      string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for originalResourceId to set.
      Returns:
      This builder for chaining.
    • hasOriginalResourceCreateTime

      public boolean hasOriginalResourceCreateTime()
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasOriginalResourceCreateTime in interface SourceMetadataOrBuilder
      Returns:
      Whether the originalResourceCreateTime field is set.
    • getOriginalResourceCreateTime

      public com.google.protobuf.Timestamp getOriginalResourceCreateTime()
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOriginalResourceCreateTime in interface SourceMetadataOrBuilder
      Returns:
      The originalResourceCreateTime.
    • setOriginalResourceCreateTime

      public SourceMetadata.Builder setOriginalResourceCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setOriginalResourceCreateTime

      public SourceMetadata.Builder setOriginalResourceCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeOriginalResourceCreateTime

      public SourceMetadata.Builder mergeOriginalResourceCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearOriginalResourceCreateTime

      public SourceMetadata.Builder clearOriginalResourceCreateTime()
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOriginalResourceCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getOriginalResourceCreateTimeBuilder()
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOriginalResourceCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOriginalResourceCreateTimeOrBuilder()
       Output only. The time at which the resource was created at the source.
       
      .google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOriginalResourceCreateTimeOrBuilder in interface SourceMetadataOrBuilder
    • hasOriginalResourceUpdateTime

      public boolean hasOriginalResourceUpdateTime()
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasOriginalResourceUpdateTime in interface SourceMetadataOrBuilder
      Returns:
      Whether the originalResourceUpdateTime field is set.
    • getOriginalResourceUpdateTime

      public com.google.protobuf.Timestamp getOriginalResourceUpdateTime()
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOriginalResourceUpdateTime in interface SourceMetadataOrBuilder
      Returns:
      The originalResourceUpdateTime.
    • setOriginalResourceUpdateTime

      public SourceMetadata.Builder setOriginalResourceUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setOriginalResourceUpdateTime

      public SourceMetadata.Builder setOriginalResourceUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeOriginalResourceUpdateTime

      public SourceMetadata.Builder mergeOriginalResourceUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearOriginalResourceUpdateTime

      public SourceMetadata.Builder clearOriginalResourceUpdateTime()
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOriginalResourceUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getOriginalResourceUpdateTimeBuilder()
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOriginalResourceUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOriginalResourceUpdateTimeOrBuilder()
       Output only. The time at which the resource was last updated at the source.
       
      .google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOriginalResourceUpdateTimeOrBuilder in interface SourceMetadataOrBuilder