Class Execution.ExternalDataSources.Builder

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

public static final class Execution.ExternalDataSources.Builder extends com.google.protobuf.GeneratedMessage.Builder<Execution.ExternalDataSources.Builder> implements Execution.ExternalDataSourcesOrBuilder
 External data sources for an execution.
 
Protobuf type google.cloud.workloadmanager.v1.Execution.ExternalDataSources
  • 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<Execution.ExternalDataSources.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<Execution.ExternalDataSources.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<Execution.ExternalDataSources.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

      public String getName()
       Optional. Name of external data source. The name will be used inside the
       rego/sql to refer the external data.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getName in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Optional. Name of external data source. The name will be used inside the
       rego/sql to refer the external data.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameBytes in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The bytes for name.
    • setName

       Optional. Name of external data source. The name will be used inside the
       rego/sql to refer the external data.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Optional. Name of external data source. The name will be used inside the
       rego/sql to refer the external data.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Execution.ExternalDataSources.Builder setNameBytes(com.google.protobuf.ByteString value)
       Optional. Name of external data source. The name will be used inside the
       rego/sql to refer the external data.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUri

      public String getUri()
       Required. URI of external data source. example of bq table
       {project_ID}.{dataset_ID}.{table_ID}.
       
      string uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUri in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Required. URI of external data source. example of bq table
       {project_ID}.{dataset_ID}.{table_ID}.
       
      string uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUriBytes in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The bytes for uri.
    • setUri

       Required. URI of external data source. example of bq table
       {project_ID}.{dataset_ID}.{table_ID}.
       
      string uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

       Required. URI of external data source. example of bq table
       {project_ID}.{dataset_ID}.{table_ID}.
       
      string uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUriBytes

      public Execution.ExternalDataSources.Builder setUriBytes(com.google.protobuf.ByteString value)
       Required. URI of external data source. example of bq table
       {project_ID}.{dataset_ID}.{table_ID}.
       
      string uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Required. Type of external data source.
       
      .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Execution.ExternalDataSources.Builder setTypeValue(int value)
       Required. Type of external data source.
       
      .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Required. Type of external data source.
       
      .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The type.
    • setType

       Required. Type of external data source.
       
      .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Required. Type of external data source.
       
      .google.cloud.workloadmanager.v1.Execution.ExternalDataSources.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getAssetType

      public String getAssetType()
       Required. The asset type of the external data source.
       This can be a supported Cloud Asset Inventory asset type
       (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       to override the default asset type, or it can be a custom type defined by
       the user.
       
      string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAssetType in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The assetType.
    • getAssetTypeBytes

      public com.google.protobuf.ByteString getAssetTypeBytes()
       Required. The asset type of the external data source.
       This can be a supported Cloud Asset Inventory asset type
       (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       to override the default asset type, or it can be a custom type defined by
       the user.
       
      string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAssetTypeBytes in interface Execution.ExternalDataSourcesOrBuilder
      Returns:
      The bytes for assetType.
    • setAssetType

      public Execution.ExternalDataSources.Builder setAssetType(String value)
       Required. The asset type of the external data source.
       This can be a supported Cloud Asset Inventory asset type
       (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       to override the default asset type, or it can be a custom type defined by
       the user.
       
      string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The assetType to set.
      Returns:
      This builder for chaining.
    • clearAssetType

      public Execution.ExternalDataSources.Builder clearAssetType()
       Required. The asset type of the external data source.
       This can be a supported Cloud Asset Inventory asset type
       (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       to override the default asset type, or it can be a custom type defined by
       the user.
       
      string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAssetTypeBytes

      public Execution.ExternalDataSources.Builder setAssetTypeBytes(com.google.protobuf.ByteString value)
       Required. The asset type of the external data source.
       This can be a supported Cloud Asset Inventory asset type
       (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       to override the default asset type, or it can be a custom type defined by
       the user.
       
      string asset_type = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for assetType to set.
      Returns:
      This builder for chaining.