@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getEtagBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (routingPolicyCase_ == 5) { output.writeMessage( 5, (com.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) routingPolicy_); } if (routingPolicyCase_ == 6) { output.writeMessage( 6, (com.google.bigtable.admin.v2.AppProfile.SingleClusterRouting) routingPolicy_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getEtagBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (routingPolicyCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) routingPolicy_); } if (routingPolicyCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.bigtable.admin.v2.AppProfile.SingleClusterRouting) routingPolicy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getEtagBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (routingPolicyCase_ == 5) { output.writeMessage( 5, (com.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) routingPolicy_); } if (routingPolicyCase_ == 6) { output.writeMessage( 6, (com.google.bigtable.admin.v2.AppProfile.SingleClusterRouting) routingPolicy_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getEtagBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (routingPolicyCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) routingPolicy_); } if (routingPolicyCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.bigtable.admin.v2.AppProfile.SingleClusterRouting) routingPolicy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }