public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceRequest other) { if (other == com.google.spanner.admin.instance.v1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } if (other.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceRequest buildPartial() { com.google.spanner.admin.instance.v1.UpdateInstanceRequest result = new com.google.spanner.admin.instance.v1.UpdateInstanceRequest(this); if (instanceBuilder_ == null) { result.instance_ = instance_; } else { result.instance_ = instanceBuilder_.build(); } if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { result.fieldMask_ = fieldMaskBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (instance_ != null) { output.writeMessage(1, getInstance()); } if (fieldMask_ != null) { output.writeMessage(2, getFieldMask()); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceRequest)) { return super.equals(obj); } com.google.spanner.admin.instance.v1.UpdateInstanceRequest other = (com.google.spanner.admin.instance.v1.UpdateInstanceRequest) obj; boolean result = true; result = result && (hasInstance() == other.hasInstance()); if (hasInstance()) { result = result && getInstance().equals(other.getInstance()); } result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceRequest getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.UpdateInstanceRequest.getDefaultInstance(); }
/** * * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { return getInstance(); }
/** * * * <pre> * Required. A mask specifying which fields in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.instance] should be updated. * The field mask must always be specified; this prevents any future fields in * [][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know * about them. * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceRequest build() { com.google.spanner.admin.instance.v1.UpdateInstanceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (instance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); } if (fieldMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
io.grpc.protobuf.ProtoUtils.marshaller( com.google.spanner.admin.instance.v1.UpdateInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
/** * * * <pre> * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { return getInstance(); }
/** * * * <pre> * Required. A mask specifying which fields in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.instance] should be updated. * The field mask must always be specified; this prevents any future fields in * [][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know * about them. * </pre> * * <code>.google.protobuf.FieldMask field_mask = 2;</code> */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { return getFieldMask(); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceRequest build() { com.google.spanner.admin.instance.v1.UpdateInstanceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } if (hasFieldMask()) { hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; hash = (53 * hash) + getFieldMask().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
UpdateInstanceRequest actualRequest = (UpdateInstanceRequest) actualRequests.get(0); Assert.assertEquals(instance, actualRequest.getInstance()); Assert.assertEquals(fieldMask, actualRequest.getFieldMask()); Assert.assertTrue( channelProvider.isHeaderSent(
@Override public OperationFuture<Instance, UpdateInstanceMetadata> updateInstance( Instance instance, FieldMask fieldMask) throws SpannerException { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder().setInstance(instance).setFieldMask(fieldMask).build(); GrpcCallContext context = newCallContext(null, instance.getName()); return instanceAdminStub.updateInstanceOperationCallable().futureCall(request, context); }
@java.lang.Override public com.google.spanner.admin.instance.v1.UpdateInstanceRequest getDefaultInstanceForType() { return com.google.spanner.admin.instance.v1.UpdateInstanceRequest.getDefaultInstance(); }