Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/parallelstore/v1beta/parallelstore.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.parallelstore.v1beta;
/**
*
*
*
* A collection of counters that report the progress of a transfer operation.
*
*
* Protobuf type {@code google.cloud.parallelstore.v1beta.TransferCounters}
*/
public final class TransferCounters extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.parallelstore.v1beta.TransferCounters)
TransferCountersOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferCounters.newBuilder() to construct.
private TransferCounters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferCounters() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TransferCounters();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferCounters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferCounters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.parallelstore.v1beta.TransferCounters.class,
com.google.cloud.parallelstore.v1beta.TransferCounters.Builder.class);
}
public static final int OBJECTS_FOUND_FIELD_NUMBER = 1;
private long objectsFound_ = 0L;
/**
*
*
*
* Objects found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 objects_found = 1;
*
* @return The objectsFound.
*/
@java.lang.Override
public long getObjectsFound() {
return objectsFound_;
}
public static final int BYTES_FOUND_FIELD_NUMBER = 2;
private long bytesFound_ = 0L;
/**
*
*
*
* Bytes found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 bytes_found = 2;
*
* @return The bytesFound.
*/
@java.lang.Override
public long getBytesFound() {
return bytesFound_;
}
public static final int OBJECTS_SKIPPED_FIELD_NUMBER = 3;
private long objectsSkipped_ = 0L;
/**
*
*
*
* Objects in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 objects_skipped = 3;
*
* @return The objectsSkipped.
*/
@java.lang.Override
public long getObjectsSkipped() {
return objectsSkipped_;
}
public static final int BYTES_SKIPPED_FIELD_NUMBER = 4;
private long bytesSkipped_ = 0L;
/**
*
*
*
* Bytes in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 bytes_skipped = 4;
*
* @return The bytesSkipped.
*/
@java.lang.Override
public long getBytesSkipped() {
return bytesSkipped_;
}
public static final int OBJECTS_COPIED_FIELD_NUMBER = 5;
private long objectsCopied_ = 0L;
/**
*
*
*
* Objects that are copied to the data destination.
*
*
* int64 objects_copied = 5;
*
* @return The objectsCopied.
*/
@java.lang.Override
public long getObjectsCopied() {
return objectsCopied_;
}
public static final int BYTES_COPIED_FIELD_NUMBER = 6;
private long bytesCopied_ = 0L;
/**
*
*
*
* Bytes that are copied to the data destination.
*
* A collection of counters that report the progress of a transfer operation.
*
*
* Protobuf type {@code google.cloud.parallelstore.v1beta.TransferCounters}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.parallelstore.v1beta.TransferCounters)
com.google.cloud.parallelstore.v1beta.TransferCountersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferCounters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferCounters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.parallelstore.v1beta.TransferCounters.class,
com.google.cloud.parallelstore.v1beta.TransferCounters.Builder.class);
}
// Construct using com.google.cloud.parallelstore.v1beta.TransferCounters.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
objectsFound_ = 0L;
bytesFound_ = 0L;
objectsSkipped_ = 0L;
bytesSkipped_ = 0L;
objectsCopied_ = 0L;
bytesCopied_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferCounters_descriptor;
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferCounters getDefaultInstanceForType() {
return com.google.cloud.parallelstore.v1beta.TransferCounters.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferCounters build() {
com.google.cloud.parallelstore.v1beta.TransferCounters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferCounters buildPartial() {
com.google.cloud.parallelstore.v1beta.TransferCounters result =
new com.google.cloud.parallelstore.v1beta.TransferCounters(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.parallelstore.v1beta.TransferCounters result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.objectsFound_ = objectsFound_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.bytesFound_ = bytesFound_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.objectsSkipped_ = objectsSkipped_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bytesSkipped_ = bytesSkipped_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.objectsCopied_ = objectsCopied_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.bytesCopied_ = bytesCopied_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.parallelstore.v1beta.TransferCounters) {
return mergeFrom((com.google.cloud.parallelstore.v1beta.TransferCounters) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.parallelstore.v1beta.TransferCounters other) {
if (other == com.google.cloud.parallelstore.v1beta.TransferCounters.getDefaultInstance())
return this;
if (other.getObjectsFound() != 0L) {
setObjectsFound(other.getObjectsFound());
}
if (other.getBytesFound() != 0L) {
setBytesFound(other.getBytesFound());
}
if (other.getObjectsSkipped() != 0L) {
setObjectsSkipped(other.getObjectsSkipped());
}
if (other.getBytesSkipped() != 0L) {
setBytesSkipped(other.getBytesSkipped());
}
if (other.getObjectsCopied() != 0L) {
setObjectsCopied(other.getObjectsCopied());
}
if (other.getBytesCopied() != 0L) {
setBytesCopied(other.getBytesCopied());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
objectsFound_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
bytesFound_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24:
{
objectsSkipped_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
bytesSkipped_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40:
{
objectsCopied_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48:
{
bytesCopied_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long objectsFound_;
/**
*
*
*
* Objects found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 objects_found = 1;
*
* @return The objectsFound.
*/
@java.lang.Override
public long getObjectsFound() {
return objectsFound_;
}
/**
*
*
*
* Objects found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 objects_found = 1;
*
* @param value The objectsFound to set.
* @return This builder for chaining.
*/
public Builder setObjectsFound(long value) {
objectsFound_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Objects found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 objects_found = 1;
*
* @return This builder for chaining.
*/
public Builder clearObjectsFound() {
bitField0_ = (bitField0_ & ~0x00000001);
objectsFound_ = 0L;
onChanged();
return this;
}
private long bytesFound_;
/**
*
*
*
* Bytes found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 bytes_found = 2;
*
* @return The bytesFound.
*/
@java.lang.Override
public long getBytesFound() {
return bytesFound_;
}
/**
*
*
*
* Bytes found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 bytes_found = 2;
*
* @param value The bytesFound to set.
* @return This builder for chaining.
*/
public Builder setBytesFound(long value) {
bytesFound_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Bytes found in the data source that are scheduled to be transferred,
* excluding any that are filtered based on object conditions or skipped due
* to sync.
*
*
* int64 bytes_found = 2;
*
* @return This builder for chaining.
*/
public Builder clearBytesFound() {
bitField0_ = (bitField0_ & ~0x00000002);
bytesFound_ = 0L;
onChanged();
return this;
}
private long objectsSkipped_;
/**
*
*
*
* Objects in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 objects_skipped = 3;
*
* @return The objectsSkipped.
*/
@java.lang.Override
public long getObjectsSkipped() {
return objectsSkipped_;
}
/**
*
*
*
* Objects in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 objects_skipped = 3;
*
* @param value The objectsSkipped to set.
* @return This builder for chaining.
*/
public Builder setObjectsSkipped(long value) {
objectsSkipped_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Objects in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 objects_skipped = 3;
*
* @return This builder for chaining.
*/
public Builder clearObjectsSkipped() {
bitField0_ = (bitField0_ & ~0x00000004);
objectsSkipped_ = 0L;
onChanged();
return this;
}
private long bytesSkipped_;
/**
*
*
*
* Bytes in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 bytes_skipped = 4;
*
* @return The bytesSkipped.
*/
@java.lang.Override
public long getBytesSkipped() {
return bytesSkipped_;
}
/**
*
*
*
* Bytes in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 bytes_skipped = 4;
*
* @param value The bytesSkipped to set.
* @return This builder for chaining.
*/
public Builder setBytesSkipped(long value) {
bytesSkipped_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Bytes in the data source that are not transferred because they already
* exist in the data destination.
*
*
* int64 bytes_skipped = 4;
*
* @return This builder for chaining.
*/
public Builder clearBytesSkipped() {
bitField0_ = (bitField0_ & ~0x00000008);
bytesSkipped_ = 0L;
onChanged();
return this;
}
private long objectsCopied_;
/**
*
*
*
* Objects that are copied to the data destination.
*
*
* int64 objects_copied = 5;
*
* @return The objectsCopied.
*/
@java.lang.Override
public long getObjectsCopied() {
return objectsCopied_;
}
/**
*
*
*
* Objects that are copied to the data destination.
*
*
* int64 objects_copied = 5;
*
* @param value The objectsCopied to set.
* @return This builder for chaining.
*/
public Builder setObjectsCopied(long value) {
objectsCopied_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Objects that are copied to the data destination.
*
*
* int64 objects_copied = 5;
*
* @return This builder for chaining.
*/
public Builder clearObjectsCopied() {
bitField0_ = (bitField0_ & ~0x00000010);
objectsCopied_ = 0L;
onChanged();
return this;
}
private long bytesCopied_;
/**
*
*
*
* Bytes that are copied to the data destination.
*
*
* int64 bytes_copied = 6;
*
* @return The bytesCopied.
*/
@java.lang.Override
public long getBytesCopied() {
return bytesCopied_;
}
/**
*
*
*
* Bytes that are copied to the data destination.
*
*
* int64 bytes_copied = 6;
*
* @param value The bytesCopied to set.
* @return This builder for chaining.
*/
public Builder setBytesCopied(long value) {
bytesCopied_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Bytes that are copied to the data destination.
*
*
* int64 bytes_copied = 6;
*
* @return This builder for chaining.
*/
public Builder clearBytesCopied() {
bitField0_ = (bitField0_ & ~0x00000020);
bytesCopied_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.parallelstore.v1beta.TransferCounters)
}
// @@protoc_insertion_point(class_scope:google.cloud.parallelstore.v1beta.TransferCounters)
private static final com.google.cloud.parallelstore.v1beta.TransferCounters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.parallelstore.v1beta.TransferCounters();
}
public static com.google.cloud.parallelstore.v1beta.TransferCounters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferCounters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferCounters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}