Class GenerateRandomBytesResponse.Builder

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

public static final class GenerateRandomBytesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerateRandomBytesResponse.Builder> implements GenerateRandomBytesResponseOrBuilder
 Response message for
 [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
 
Protobuf type google.cloud.kms.v1.GenerateRandomBytesResponse
  • 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<GenerateRandomBytesResponse.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<GenerateRandomBytesResponse.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<GenerateRandomBytesResponse.Builder>
    • getDefaultInstanceForType

      public GenerateRandomBytesResponse 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 GenerateRandomBytesResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public GenerateRandomBytesResponse.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<GenerateRandomBytesResponse.Builder>
      Throws:
      IOException
    • getData

      public com.google.protobuf.ByteString getData()
       The generated data.
       
      bytes data = 1;
      Specified by:
      getData in interface GenerateRandomBytesResponseOrBuilder
      Returns:
      The data.
    • setData

      public GenerateRandomBytesResponse.Builder setData(com.google.protobuf.ByteString value)
       The generated data.
       
      bytes data = 1;
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • clearData

       The generated data.
       
      bytes data = 1;
      Returns:
      This builder for chaining.
    • hasDataCrc32C

      public boolean hasDataCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
      Specified by:
      hasDataCrc32C in interface GenerateRandomBytesResponseOrBuilder
      Returns:
      Whether the dataCrc32c field is set.
    • getDataCrc32C

      public com.google.protobuf.Int64Value getDataCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
      Specified by:
      getDataCrc32C in interface GenerateRandomBytesResponseOrBuilder
      Returns:
      The dataCrc32c.
    • setDataCrc32C

      public GenerateRandomBytesResponse.Builder setDataCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
    • setDataCrc32C

      public GenerateRandomBytesResponse.Builder setDataCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
    • mergeDataCrc32C

      public GenerateRandomBytesResponse.Builder mergeDataCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
    • clearDataCrc32C

      public GenerateRandomBytesResponse.Builder clearDataCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
    • getDataCrc32CBuilder

      public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
    • getDataCrc32COrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data].
       An integrity check of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       can be performed by computing the CRC32C checksum of
       [GenerateRandomBytesResponse.data][google.cloud.kms.v1.GenerateRandomBytesResponse.data]
       and comparing your results to this field. Discard the response in case of
       non-matching checksum values, and perform a limited number of retries. A
       persistent mismatch may indicate an issue in your computation of the CRC32C
       checksum. Note: This field is defined as int64 for reasons of compatibility
       across different languages. However, it is a non-negative integer, which
       will never exceed 2^32-1, and can be safely downconverted to uint32 in
       languages that support this type.
       
      .google.protobuf.Int64Value data_crc32c = 3;
      Specified by:
      getDataCrc32COrBuilder in interface GenerateRandomBytesResponseOrBuilder