Interface VersionedResourceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
VersionedResource, VersionedResource.Builder

@Generated public interface VersionedResourceOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.Struct
    JSON representation of the resource as defined by the corresponding service providing this resource.
    com.google.protobuf.StructOrBuilder
    JSON representation of the resource as defined by the corresponding service providing this resource.
    API version of the resource.
    com.google.protobuf.ByteString
    API version of the resource.
    boolean
    JSON representation of the resource as defined by the corresponding service providing this resource.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getVersion

      String getVersion()
       API version of the resource.
      
       Example:
       If the resource is an instance provided by Compute Engine v1 API as defined
       in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
       version will be "v1".
       
      string version = 1;
      Returns:
      The version.
    • getVersionBytes

      com.google.protobuf.ByteString getVersionBytes()
       API version of the resource.
      
       Example:
       If the resource is an instance provided by Compute Engine v1 API as defined
       in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
       version will be "v1".
       
      string version = 1;
      Returns:
      The bytes for version.
    • hasResource

      boolean hasResource()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
      Returns:
      Whether the resource field is set.
    • getResource

      com.google.protobuf.Struct getResource()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;
      Returns:
      The resource.
    • getResourceOrBuilder

      com.google.protobuf.StructOrBuilder getResourceOrBuilder()
       JSON representation of the resource as defined by the corresponding
       service providing this resource.
      
       Example:
       If the resource is an instance provided by Compute Engine, this field will
       contain the JSON representation of the instance as defined by Compute
       Engine:
       `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
      
       You can find the resource definition for each supported resource type in
       this table:
       `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
       
      .google.protobuf.Struct resource = 2;