com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-maps-routeoptimization-v1 Show documentation
Show all versions of proto-google-maps-routeoptimization-v1 Show documentation
Proto library for google-maps-routeoptimization
The newest version!
/*
* 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/maps/routeoptimization/v1/route_optimization_service.proto
// Protobuf Java Version: 3.25.5
package com.google.maps.routeoptimization.v1;
/**
*
*
*
* Request to batch optimize tours as an asynchronous operation.
* Each input file should contain one `OptimizeToursRequest`, and each output
* file will contain one `OptimizeToursResponse`. The request contains
* information to read/write and parse the files. All the input and output files
* should be under the same project.
*
*
* Protobuf type {@code google.maps.routeoptimization.v1.BatchOptimizeToursRequest}
*/
public final class BatchOptimizeToursRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.maps.routeoptimization.v1.BatchOptimizeToursRequest)
BatchOptimizeToursRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchOptimizeToursRequest.newBuilder() to construct.
private BatchOptimizeToursRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchOptimizeToursRequest() {
parent_ = "";
modelConfigs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BatchOptimizeToursRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.class,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.Builder.class);
}
public interface AsyncModelConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The displayName.
*/
java.lang.String getDisplayName();
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for displayName.
*/
com.google.protobuf.ByteString getDisplayNameBytes();
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the inputConfig field is set.
*/
boolean hasInputConfig();
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The inputConfig.
*/
com.google.maps.routeoptimization.v1.InputConfig getInputConfig();
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
com.google.maps.routeoptimization.v1.InputConfigOrBuilder getInputConfigOrBuilder();
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the outputConfig field is set.
*/
boolean hasOutputConfig();
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The outputConfig.
*/
com.google.maps.routeoptimization.v1.OutputConfig getOutputConfig();
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
com.google.maps.routeoptimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder();
}
/**
*
*
*
* Information for solving one optimization model asynchronously.
*
*
* Protobuf type {@code
* google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig}
*/
public static final class AsyncModelConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
AsyncModelConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use AsyncModelConfig.newBuilder() to construct.
private AsyncModelConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AsyncModelConfig() {
displayName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AsyncModelConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.class,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.Builder.class);
}
private int bitField0_;
public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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();
displayName_ = s;
return s;
}
}
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUT_CONFIG_FIELD_NUMBER = 2;
private com.google.maps.routeoptimization.v1.InputConfig inputConfig_;
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the inputConfig field is set.
*/
@java.lang.Override
public boolean hasInputConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The inputConfig.
*/
@java.lang.Override
public com.google.maps.routeoptimization.v1.InputConfig getInputConfig() {
return inputConfig_ == null
? com.google.maps.routeoptimization.v1.InputConfig.getDefaultInstance()
: inputConfig_;
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.maps.routeoptimization.v1.InputConfigOrBuilder getInputConfigOrBuilder() {
return inputConfig_ == null
? com.google.maps.routeoptimization.v1.InputConfig.getDefaultInstance()
: inputConfig_;
}
public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3;
private com.google.maps.routeoptimization.v1.OutputConfig outputConfig_;
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the outputConfig field is set.
*/
@java.lang.Override
public boolean hasOutputConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The outputConfig.
*/
@java.lang.Override
public com.google.maps.routeoptimization.v1.OutputConfig getOutputConfig() {
return outputConfig_ == null
? com.google.maps.routeoptimization.v1.OutputConfig.getDefaultInstance()
: outputConfig_;
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.maps.routeoptimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() {
return outputConfig_ == null
? com.google.maps.routeoptimization.v1.OutputConfig.getDefaultInstance()
: outputConfig_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getInputConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getOutputConfig());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig());
}
size += getUnknownFields().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.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)) {
return super.equals(obj);
}
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other =
(com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) obj;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (hasInputConfig() != other.hasInputConfig()) return false;
if (hasInputConfig()) {
if (!getInputConfig().equals(other.getInputConfig())) return false;
}
if (hasOutputConfig() != other.hasOutputConfig()) return false;
if (hasOutputConfig()) {
if (!getOutputConfig().equals(other.getOutputConfig())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
if (hasInputConfig()) {
hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getInputConfig().hashCode();
}
if (hasOutputConfig()) {
hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getOutputConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
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.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
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.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
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.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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;
}
/**
*
*
*
* Information for solving one optimization model asynchronously.
*
*
* Protobuf type {@code
* google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.class,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.Builder.class);
}
// Construct using
// com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getInputConfigFieldBuilder();
getOutputConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
displayName_ = "";
inputConfig_ = null;
if (inputConfigBuilder_ != null) {
inputConfigBuilder_.dispose();
inputConfigBuilder_ = null;
}
outputConfig_ = null;
if (outputConfigBuilder_ != null) {
outputConfigBuilder_.dispose();
outputConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_AsyncModelConfig_descriptor;
}
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
getDefaultInstanceForType() {
return com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.getDefaultInstance();
}
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
build() {
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
buildPartial() {
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result =
new com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.displayName_ = displayName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.inputConfig_ =
inputConfigBuilder_ == null ? inputConfig_ : inputConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.outputConfig_ =
outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig) {
return mergeFrom(
(com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig other) {
if (other
== com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.getDefaultInstance()) return this;
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasInputConfig()) {
mergeInputConfig(other.getInputConfig());
}
if (other.hasOutputConfig()) {
mergeOutputConfig(other.getOutputConfig());
}
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 10:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getInputConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 java.lang.Object displayName_ = "";
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
displayName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
displayName_ = getDefaultInstance().getDisplayName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. User defined model name, can be used as alias by users to keep
* track of models.
*
*
* string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.maps.routeoptimization.v1.InputConfig inputConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.maps.routeoptimization.v1.InputConfig,
com.google.maps.routeoptimization.v1.InputConfig.Builder,
com.google.maps.routeoptimization.v1.InputConfigOrBuilder>
inputConfigBuilder_;
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the inputConfig field is set.
*/
public boolean hasInputConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The inputConfig.
*/
public com.google.maps.routeoptimization.v1.InputConfig getInputConfig() {
if (inputConfigBuilder_ == null) {
return inputConfig_ == null
? com.google.maps.routeoptimization.v1.InputConfig.getDefaultInstance()
: inputConfig_;
} else {
return inputConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setInputConfig(com.google.maps.routeoptimization.v1.InputConfig value) {
if (inputConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inputConfig_ = value;
} else {
inputConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setInputConfig(
com.google.maps.routeoptimization.v1.InputConfig.Builder builderForValue) {
if (inputConfigBuilder_ == null) {
inputConfig_ = builderForValue.build();
} else {
inputConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeInputConfig(com.google.maps.routeoptimization.v1.InputConfig value) {
if (inputConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& inputConfig_ != null
&& inputConfig_
!= com.google.maps.routeoptimization.v1.InputConfig.getDefaultInstance()) {
getInputConfigBuilder().mergeFrom(value);
} else {
inputConfig_ = value;
}
} else {
inputConfigBuilder_.mergeFrom(value);
}
if (inputConfig_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearInputConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
inputConfig_ = null;
if (inputConfigBuilder_ != null) {
inputConfigBuilder_.dispose();
inputConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.InputConfig.Builder getInputConfigBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getInputConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.InputConfigOrBuilder getInputConfigOrBuilder() {
if (inputConfigBuilder_ != null) {
return inputConfigBuilder_.getMessageOrBuilder();
} else {
return inputConfig_ == null
? com.google.maps.routeoptimization.v1.InputConfig.getDefaultInstance()
: inputConfig_;
}
}
/**
*
*
*
* Required. Information about the input model.
*
*
*
* .google.maps.routeoptimization.v1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.maps.routeoptimization.v1.InputConfig,
com.google.maps.routeoptimization.v1.InputConfig.Builder,
com.google.maps.routeoptimization.v1.InputConfigOrBuilder>
getInputConfigFieldBuilder() {
if (inputConfigBuilder_ == null) {
inputConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.maps.routeoptimization.v1.InputConfig,
com.google.maps.routeoptimization.v1.InputConfig.Builder,
com.google.maps.routeoptimization.v1.InputConfigOrBuilder>(
getInputConfig(), getParentForChildren(), isClean());
inputConfig_ = null;
}
return inputConfigBuilder_;
}
private com.google.maps.routeoptimization.v1.OutputConfig outputConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.maps.routeoptimization.v1.OutputConfig,
com.google.maps.routeoptimization.v1.OutputConfig.Builder,
com.google.maps.routeoptimization.v1.OutputConfigOrBuilder>
outputConfigBuilder_;
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the outputConfig field is set.
*/
public boolean hasOutputConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The outputConfig.
*/
public com.google.maps.routeoptimization.v1.OutputConfig getOutputConfig() {
if (outputConfigBuilder_ == null) {
return outputConfig_ == null
? com.google.maps.routeoptimization.v1.OutputConfig.getDefaultInstance()
: outputConfig_;
} else {
return outputConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setOutputConfig(com.google.maps.routeoptimization.v1.OutputConfig value) {
if (outputConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputConfig_ = value;
} else {
outputConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setOutputConfig(
com.google.maps.routeoptimization.v1.OutputConfig.Builder builderForValue) {
if (outputConfigBuilder_ == null) {
outputConfig_ = builderForValue.build();
} else {
outputConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeOutputConfig(com.google.maps.routeoptimization.v1.OutputConfig value) {
if (outputConfigBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& outputConfig_ != null
&& outputConfig_
!= com.google.maps.routeoptimization.v1.OutputConfig.getDefaultInstance()) {
getOutputConfigBuilder().mergeFrom(value);
} else {
outputConfig_ = value;
}
} else {
outputConfigBuilder_.mergeFrom(value);
}
if (outputConfig_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearOutputConfig() {
bitField0_ = (bitField0_ & ~0x00000004);
outputConfig_ = null;
if (outputConfigBuilder_ != null) {
outputConfigBuilder_.dispose();
outputConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.OutputConfig.Builder getOutputConfigBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getOutputConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() {
if (outputConfigBuilder_ != null) {
return outputConfigBuilder_.getMessageOrBuilder();
} else {
return outputConfig_ == null
? com.google.maps.routeoptimization.v1.OutputConfig.getDefaultInstance()
: outputConfig_;
}
}
/**
*
*
*
* Required. The desired output location information.
*
*
*
* .google.maps.routeoptimization.v1.OutputConfig output_config = 3 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.maps.routeoptimization.v1.OutputConfig,
com.google.maps.routeoptimization.v1.OutputConfig.Builder,
com.google.maps.routeoptimization.v1.OutputConfigOrBuilder>
getOutputConfigFieldBuilder() {
if (outputConfigBuilder_ == null) {
outputConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.maps.routeoptimization.v1.OutputConfig,
com.google.maps.routeoptimization.v1.OutputConfig.Builder,
com.google.maps.routeoptimization.v1.OutputConfigOrBuilder>(
getOutputConfig(), getParentForChildren(), isClean());
outputConfig_ = null;
}
return outputConfigBuilder_;
}
@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.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
}
// @@protoc_insertion_point(class_scope:google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig)
private static final com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
.AsyncModelConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig();
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AsyncModelConfig 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.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int PARENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object parent_ = "";
/**
*
*
*
* Required. Target project and location to make a call.
*
* Format:
* * `projects/{project-id}`
* * `projects/{project-id}/locations/{location-id}`
*
* If no location is specified, a region will be chosen automatically.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The parent.
*/
@java.lang.Override
public java.lang.String getParent() {
java.lang.Object ref = parent_;
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();
parent_ = s;
return s;
}
}
/**
*
*
*
* Required. Target project and location to make a call.
*
* Format:
* * `projects/{project-id}`
* * `projects/{project-id}/locations/{location-id}`
*
* If no location is specified, a region will be chosen automatically.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for parent.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODEL_CONFIGS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>
modelConfigs_;
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public java.util.List<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>
getModelConfigsList() {
return modelConfigs_;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
.AsyncModelConfigOrBuilder>
getModelConfigsOrBuilderList() {
return modelConfigs_;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public int getModelConfigsCount() {
return modelConfigs_.size();
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
getModelConfigs(int index) {
return modelConfigs_.get(index);
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
getModelConfigsOrBuilder(int index) {
return modelConfigs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
for (int i = 0; i < modelConfigs_.size(); i++) {
output.writeMessage(2, modelConfigs_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
for (int i = 0; i < modelConfigs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, modelConfigs_.get(i));
}
size += getUnknownFields().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.maps.routeoptimization.v1.BatchOptimizeToursRequest)) {
return super.equals(obj);
}
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest other =
(com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest) obj;
if (!getParent().equals(other.getParent())) return false;
if (!getModelConfigsList().equals(other.getModelConfigsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARENT_FIELD_NUMBER;
hash = (53 * hash) + getParent().hashCode();
if (getModelConfigsCount() > 0) {
hash = (37 * hash) + MODEL_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getModelConfigsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest 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.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest 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.maps.routeoptimization.v1.BatchOptimizeToursRequest parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest 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.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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 to batch optimize tours as an asynchronous operation.
* Each input file should contain one `OptimizeToursRequest`, and each output
* file will contain one `OptimizeToursResponse`. The request contains
* information to read/write and parse the files. All the input and output files
* should be under the same project.
*
*
* Protobuf type {@code google.maps.routeoptimization.v1.BatchOptimizeToursRequest}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.maps.routeoptimization.v1.BatchOptimizeToursRequest)
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.class,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.Builder.class);
}
// Construct using com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
parent_ = "";
if (modelConfigsBuilder_ == null) {
modelConfigs_ = java.util.Collections.emptyList();
} else {
modelConfigs_ = null;
modelConfigsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.maps.routeoptimization.v1.RouteOptimizationServiceProto
.internal_static_google_maps_routeoptimization_v1_BatchOptimizeToursRequest_descriptor;
}
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
getDefaultInstanceForType() {
return com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest build() {
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest buildPartial() {
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest result =
new com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest result) {
if (modelConfigsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
modelConfigs_ = java.util.Collections.unmodifiableList(modelConfigs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.modelConfigs_ = modelConfigs_;
} else {
result.modelConfigs_ = modelConfigsBuilder_.build();
}
}
private void buildPartial0(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parent_ = parent_;
}
}
@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.maps.routeoptimization.v1.BatchOptimizeToursRequest) {
return mergeFrom((com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest other) {
if (other
== com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.getDefaultInstance())
return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
bitField0_ |= 0x00000001;
onChanged();
}
if (modelConfigsBuilder_ == null) {
if (!other.modelConfigs_.isEmpty()) {
if (modelConfigs_.isEmpty()) {
modelConfigs_ = other.modelConfigs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureModelConfigsIsMutable();
modelConfigs_.addAll(other.modelConfigs_);
}
onChanged();
}
} else {
if (!other.modelConfigs_.isEmpty()) {
if (modelConfigsBuilder_.isEmpty()) {
modelConfigsBuilder_.dispose();
modelConfigsBuilder_ = null;
modelConfigs_ = other.modelConfigs_;
bitField0_ = (bitField0_ & ~0x00000002);
modelConfigsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getModelConfigsFieldBuilder()
: null;
} else {
modelConfigsBuilder_.addAllMessages(other.modelConfigs_);
}
}
}
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 10:
{
parent_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig m =
input.readMessage(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
.AsyncModelConfig.parser(),
extensionRegistry);
if (modelConfigsBuilder_ == null) {
ensureModelConfigsIsMutable();
modelConfigs_.add(m);
} else {
modelConfigsBuilder_.addMessage(m);
}
break;
} // case 18
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 java.lang.Object parent_ = "";
/**
*
*
*
* Required. Target project and location to make a call.
*
* Format:
* * `projects/{project-id}`
* * `projects/{project-id}/locations/{location-id}`
*
* If no location is specified, a region will be chosen automatically.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The parent.
*/
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. Target project and location to make a call.
*
* Format:
* * `projects/{project-id}`
* * `projects/{project-id}/locations/{location-id}`
*
* If no location is specified, a region will be chosen automatically.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for parent.
*/
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
parent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. Target project and location to make a call.
*
* Format:
* * `projects/{project-id}`
* * `projects/{project-id}/locations/{location-id}`
*
* If no location is specified, a region will be chosen automatically.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The parent to set.
* @return This builder for chaining.
*/
public Builder setParent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parent_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. Target project and location to make a call.
*
* Format:
* * `projects/{project-id}`
* * `projects/{project-id}/locations/{location-id}`
*
* If no location is specified, a region will be chosen automatically.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearParent() {
parent_ = getDefaultInstance().getParent();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Required. Target project and location to make a call.
*
* Format:
* * `projects/{project-id}`
* * `projects/{project-id}/locations/{location-id}`
*
* If no location is specified, a region will be chosen automatically.
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for parent to set.
* @return This builder for chaining.
*/
public Builder setParentBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parent_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>
modelConfigs_ = java.util.Collections.emptyList();
private void ensureModelConfigsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
modelConfigs_ =
new java.util.ArrayList<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>(
modelConfigs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
.AsyncModelConfigOrBuilder>
modelConfigsBuilder_;
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>
getModelConfigsList() {
if (modelConfigsBuilder_ == null) {
return java.util.Collections.unmodifiableList(modelConfigs_);
} else {
return modelConfigsBuilder_.getMessageList();
}
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public int getModelConfigsCount() {
if (modelConfigsBuilder_ == null) {
return modelConfigs_.size();
} else {
return modelConfigsBuilder_.getCount();
}
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
getModelConfigs(int index) {
if (modelConfigsBuilder_ == null) {
return modelConfigs_.get(index);
} else {
return modelConfigsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setModelConfigs(
int index,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) {
if (modelConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModelConfigsIsMutable();
modelConfigs_.set(index, value);
onChanged();
} else {
modelConfigsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setModelConfigs(
int index,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder
builderForValue) {
if (modelConfigsBuilder_ == null) {
ensureModelConfigsIsMutable();
modelConfigs_.set(index, builderForValue.build());
onChanged();
} else {
modelConfigsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addModelConfigs(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) {
if (modelConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModelConfigsIsMutable();
modelConfigs_.add(value);
onChanged();
} else {
modelConfigsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addModelConfigs(
int index,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig value) {
if (modelConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModelConfigsIsMutable();
modelConfigs_.add(index, value);
onChanged();
} else {
modelConfigsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addModelConfigs(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder
builderForValue) {
if (modelConfigsBuilder_ == null) {
ensureModelConfigsIsMutable();
modelConfigs_.add(builderForValue.build());
onChanged();
} else {
modelConfigsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addModelConfigs(
int index,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder
builderForValue) {
if (modelConfigsBuilder_ == null) {
ensureModelConfigsIsMutable();
modelConfigs_.add(index, builderForValue.build());
onChanged();
} else {
modelConfigsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addAllModelConfigs(
java.lang.Iterable<
? extends
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig>
values) {
if (modelConfigsBuilder_ == null) {
ensureModelConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelConfigs_);
onChanged();
} else {
modelConfigsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearModelConfigs() {
if (modelConfigsBuilder_ == null) {
modelConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
modelConfigsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder removeModelConfigs(int index) {
if (modelConfigsBuilder_ == null) {
ensureModelConfigsIsMutable();
modelConfigs_.remove(index);
onChanged();
} else {
modelConfigsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder
getModelConfigsBuilder(int index) {
return getModelConfigsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfigOrBuilder
getModelConfigsOrBuilder(int index) {
if (modelConfigsBuilder_ == null) {
return modelConfigs_.get(index);
} else {
return modelConfigsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List<
? extends
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
.AsyncModelConfigOrBuilder>
getModelConfigsOrBuilderList() {
if (modelConfigsBuilder_ != null) {
return modelConfigsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(modelConfigs_);
}
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder
addModelConfigsBuilder() {
return getModelConfigsFieldBuilder()
.addBuilder(
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.getDefaultInstance());
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder
addModelConfigsBuilder(int index) {
return getModelConfigsFieldBuilder()
.addBuilder(
index,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.getDefaultInstance());
}
/**
*
*
*
* Required. Input/Output information each purchase model, such as file paths
* and data formats.
*
*
*
* repeated .google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig model_configs = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder>
getModelConfigsBuilderList() {
return getModelConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig.Builder,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
.AsyncModelConfigOrBuilder>
getModelConfigsFieldBuilder() {
if (modelConfigsBuilder_ == null) {
modelConfigsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest.AsyncModelConfig
.Builder,
com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
.AsyncModelConfigOrBuilder>(
modelConfigs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
modelConfigs_ = null;
}
return modelConfigsBuilder_;
}
@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.maps.routeoptimization.v1.BatchOptimizeToursRequest)
}
// @@protoc_insertion_point(class_scope:google.maps.routeoptimization.v1.BatchOptimizeToursRequest)
private static final com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest();
}
public static com.google.maps.routeoptimization.v1.BatchOptimizeToursRequest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchOptimizeToursRequest 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.maps.routeoptimization.v1.BatchOptimizeToursRequest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy