com.google.appengine.v1.UpdateServiceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-appengine-v1 Show documentation
Show all versions of proto-google-appengine-v1 Show documentation
PROTO library for proto-google-appengine-v1
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/appengine/v1/appengine.proto
package com.google.appengine.v1;
/**
*
* Request message for `Services.UpdateService`.
*
*
* Protobuf type {@code google.appengine.v1.UpdateServiceRequest}
*/
public final class UpdateServiceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.appengine.v1.UpdateServiceRequest)
UpdateServiceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateServiceRequest.newBuilder() to construct.
private UpdateServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateServiceRequest() {
name_ = "";
migrateTraffic_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateServiceRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
com.google.appengine.v1.Service.Builder subBuilder = null;
if (service_ != null) {
subBuilder = service_.toBuilder();
}
service_ = input.readMessage(com.google.appengine.v1.Service.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(service_);
service_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 32: {
migrateTraffic_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.v1.AppengineProto.internal_static_google_appengine_v1_UpdateServiceRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.v1.AppengineProto.internal_static_google_appengine_v1_UpdateServiceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.v1.UpdateServiceRequest.class, com.google.appengine.v1.UpdateServiceRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the resource to update. Example: `apps/myapp/services/default`.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the resource to update. Example: `apps/myapp/services/default`.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_FIELD_NUMBER = 2;
private com.google.appengine.v1.Service service_;
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public boolean hasService() {
return service_ != null;
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public com.google.appengine.v1.Service getService() {
return service_ == null ? com.google.appengine.v1.Service.getDefaultInstance() : service_;
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public com.google.appengine.v1.ServiceOrBuilder getServiceOrBuilder() {
return getService();
}
public static final int UPDATE_MASK_FIELD_NUMBER = 3;
private com.google.protobuf.FieldMask updateMask_;
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int MIGRATE_TRAFFIC_FIELD_NUMBER = 4;
private boolean migrateTraffic_;
/**
*
* Set to `true` to gradually shift traffic from one version to another
* single version. By default, traffic is shifted immediately.
* For gradual traffic migration, the target version
* must be located within instances that are configured for both
* [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype)
* and
* [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling).
* You must specify the
* [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby)
* field in the Service resource. Gradual traffic migration is not
* supported in the App Engine flexible environment. For examples, see
* [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
*
*
* bool migrate_traffic = 4;
*/
public boolean getMigrateTraffic() {
return migrateTraffic_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (service_ != null) {
output.writeMessage(2, getService());
}
if (updateMask_ != null) {
output.writeMessage(3, getUpdateMask());
}
if (migrateTraffic_ != false) {
output.writeBool(4, migrateTraffic_);
}
unknownFields.writeTo(output);
}
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 (service_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getService());
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUpdateMask());
}
if (migrateTraffic_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, migrateTraffic_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.v1.UpdateServiceRequest)) {
return super.equals(obj);
}
com.google.appengine.v1.UpdateServiceRequest other = (com.google.appengine.v1.UpdateServiceRequest) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && (hasService() == other.hasService());
if (hasService()) {
result = result && getService()
.equals(other.getService());
}
result = result && (hasUpdateMask() == other.hasUpdateMask());
if (hasUpdateMask()) {
result = result && getUpdateMask()
.equals(other.getUpdateMask());
}
result = result && (getMigrateTraffic()
== other.getMigrateTraffic());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasService()) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
}
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
hash = (37 * hash) + MIGRATE_TRAFFIC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMigrateTraffic());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.v1.UpdateServiceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.v1.UpdateServiceRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.v1.UpdateServiceRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.v1.UpdateServiceRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Request message for `Services.UpdateService`.
*
*
* Protobuf type {@code google.appengine.v1.UpdateServiceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.appengine.v1.UpdateServiceRequest)
com.google.appengine.v1.UpdateServiceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.v1.AppengineProto.internal_static_google_appengine_v1_UpdateServiceRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.v1.AppengineProto.internal_static_google_appengine_v1_UpdateServiceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.v1.UpdateServiceRequest.class, com.google.appengine.v1.UpdateServiceRequest.Builder.class);
}
// Construct using com.google.appengine.v1.UpdateServiceRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
if (serviceBuilder_ == null) {
service_ = null;
} else {
service_ = null;
serviceBuilder_ = null;
}
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
migrateTraffic_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.v1.AppengineProto.internal_static_google_appengine_v1_UpdateServiceRequest_descriptor;
}
public com.google.appengine.v1.UpdateServiceRequest getDefaultInstanceForType() {
return com.google.appengine.v1.UpdateServiceRequest.getDefaultInstance();
}
public com.google.appengine.v1.UpdateServiceRequest build() {
com.google.appengine.v1.UpdateServiceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.appengine.v1.UpdateServiceRequest buildPartial() {
com.google.appengine.v1.UpdateServiceRequest result = new com.google.appengine.v1.UpdateServiceRequest(this);
result.name_ = name_;
if (serviceBuilder_ == null) {
result.service_ = service_;
} else {
result.service_ = serviceBuilder_.build();
}
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.migrateTraffic_ = migrateTraffic_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.v1.UpdateServiceRequest) {
return mergeFrom((com.google.appengine.v1.UpdateServiceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.v1.UpdateServiceRequest other) {
if (other == com.google.appengine.v1.UpdateServiceRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasService()) {
mergeService(other.getService());
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (other.getMigrateTraffic() != false) {
setMigrateTraffic(other.getMigrateTraffic());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.appengine.v1.UpdateServiceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.appengine.v1.UpdateServiceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the resource to update. Example: `apps/myapp/services/default`.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the resource to update. Example: `apps/myapp/services/default`.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the resource to update. Example: `apps/myapp/services/default`.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the resource to update. Example: `apps/myapp/services/default`.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the resource to update. Example: `apps/myapp/services/default`.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.appengine.v1.Service service_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.v1.Service, com.google.appengine.v1.Service.Builder, com.google.appengine.v1.ServiceOrBuilder> serviceBuilder_;
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public boolean hasService() {
return serviceBuilder_ != null || service_ != null;
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public com.google.appengine.v1.Service getService() {
if (serviceBuilder_ == null) {
return service_ == null ? com.google.appengine.v1.Service.getDefaultInstance() : service_;
} else {
return serviceBuilder_.getMessage();
}
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public Builder setService(com.google.appengine.v1.Service value) {
if (serviceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
service_ = value;
onChanged();
} else {
serviceBuilder_.setMessage(value);
}
return this;
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public Builder setService(
com.google.appengine.v1.Service.Builder builderForValue) {
if (serviceBuilder_ == null) {
service_ = builderForValue.build();
onChanged();
} else {
serviceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public Builder mergeService(com.google.appengine.v1.Service value) {
if (serviceBuilder_ == null) {
if (service_ != null) {
service_ =
com.google.appengine.v1.Service.newBuilder(service_).mergeFrom(value).buildPartial();
} else {
service_ = value;
}
onChanged();
} else {
serviceBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public Builder clearService() {
if (serviceBuilder_ == null) {
service_ = null;
onChanged();
} else {
service_ = null;
serviceBuilder_ = null;
}
return this;
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public com.google.appengine.v1.Service.Builder getServiceBuilder() {
onChanged();
return getServiceFieldBuilder().getBuilder();
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
public com.google.appengine.v1.ServiceOrBuilder getServiceOrBuilder() {
if (serviceBuilder_ != null) {
return serviceBuilder_.getMessageOrBuilder();
} else {
return service_ == null ?
com.google.appengine.v1.Service.getDefaultInstance() : service_;
}
}
/**
*
* A Service resource containing the updated service. Only fields set in the
* field mask will be updated.
*
*
* .google.appengine.v1.Service service = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.v1.Service, com.google.appengine.v1.Service.Builder, com.google.appengine.v1.ServiceOrBuilder>
getServiceFieldBuilder() {
if (serviceBuilder_ == null) {
serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.v1.Service, com.google.appengine.v1.Service.Builder, com.google.appengine.v1.ServiceOrBuilder>(
getService(),
getParentForChildren(),
isClean());
service_ = null;
}
return serviceBuilder_;
}
private com.google.protobuf.FieldMask updateMask_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
*
* Standard field mask for the set of fields to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private boolean migrateTraffic_ ;
/**
*
* Set to `true` to gradually shift traffic from one version to another
* single version. By default, traffic is shifted immediately.
* For gradual traffic migration, the target version
* must be located within instances that are configured for both
* [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype)
* and
* [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling).
* You must specify the
* [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby)
* field in the Service resource. Gradual traffic migration is not
* supported in the App Engine flexible environment. For examples, see
* [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
*
*
* bool migrate_traffic = 4;
*/
public boolean getMigrateTraffic() {
return migrateTraffic_;
}
/**
*
* Set to `true` to gradually shift traffic from one version to another
* single version. By default, traffic is shifted immediately.
* For gradual traffic migration, the target version
* must be located within instances that are configured for both
* [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype)
* and
* [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling).
* You must specify the
* [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby)
* field in the Service resource. Gradual traffic migration is not
* supported in the App Engine flexible environment. For examples, see
* [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
*
*
* bool migrate_traffic = 4;
*/
public Builder setMigrateTraffic(boolean value) {
migrateTraffic_ = value;
onChanged();
return this;
}
/**
*
* Set to `true` to gradually shift traffic from one version to another
* single version. By default, traffic is shifted immediately.
* For gradual traffic migration, the target version
* must be located within instances that are configured for both
* [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype)
* and
* [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling).
* You must specify the
* [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby)
* field in the Service resource. Gradual traffic migration is not
* supported in the App Engine flexible environment. For examples, see
* [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
*
*
* bool migrate_traffic = 4;
*/
public Builder clearMigrateTraffic() {
migrateTraffic_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.appengine.v1.UpdateServiceRequest)
}
// @@protoc_insertion_point(class_scope:google.appengine.v1.UpdateServiceRequest)
private static final com.google.appengine.v1.UpdateServiceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.v1.UpdateServiceRequest();
}
public static com.google.appengine.v1.UpdateServiceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public UpdateServiceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateServiceRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.google.appengine.v1.UpdateServiceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy