com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-contact-center-insights-v1 Show documentation
Show all versions of proto-google-cloud-contact-center-insights-v1 Show documentation
Proto library for google-cloud-contact-center-insights
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto
package com.google.cloud.contactcenterinsights.v1;
/**
*
*
*
* The request to ingest conversations.
*
*
* Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsRequest}
*/
public final class IngestConversationsRequest extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest)
IngestConversationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngestConversationsRequest.newBuilder() to construct.
private IngestConversationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngestConversationsRequest() {
parent_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IngestConversationsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder.class);
}
public interface GcsSourceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bucketUri.
*/
java.lang.String getBucketUri();
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for bucketUri.
*/
com.google.protobuf.ByteString getBucketUriBytes();
}
/**
*
*
*
* Configuration for Cloud Storage bucket sources.
*
*
* Protobuf type {@code
* google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource}
*/
public static final class GcsSource extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
GcsSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use GcsSource.newBuilder() to construct.
private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GcsSource() {
bucketUri_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new GcsSource();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder
.class);
}
public static final int BUCKET_URI_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object bucketUri_ = "";
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bucketUri.
*/
@java.lang.Override
public java.lang.String getBucketUri() {
java.lang.Object ref = bucketUri_;
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();
bucketUri_ = s;
return s;
}
}
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for bucketUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBucketUriBytes() {
java.lang.Object ref = bucketUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
bucketUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(bucketUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketUri_);
}
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(bucketUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketUri_);
}
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.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)) {
return super.equals(obj);
}
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource other =
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) obj;
if (!getBucketUri().equals(other.getBucketUri())) 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) + BUCKET_URI_FIELD_NUMBER;
hash = (53 * hash) + getBucketUri().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
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.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
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.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
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.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
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.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource 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;
}
/**
*
*
*
* Configuration for Cloud Storage bucket sources.
*
*
* Protobuf type {@code
* google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.Builder.class);
}
// Construct using
// com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bucketUri_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
getDefaultInstanceForType() {
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
build() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
buildPartial() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource result =
new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.bucketUri_ = bucketUri_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) {
return mergeFrom(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource other) {
if (other
== com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance()) return this;
if (!other.getBucketUri().isEmpty()) {
bucketUri_ = other.bucketUri_;
bitField0_ |= 0x00000001;
onChanged();
}
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:
{
bucketUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 bucketUri_ = "";
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bucketUri.
*/
public java.lang.String getBucketUri() {
java.lang.Object ref = bucketUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bucketUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for bucketUri.
*/
public com.google.protobuf.ByteString getBucketUriBytes() {
java.lang.Object ref = bucketUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
bucketUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bucketUri to set.
* @return This builder for chaining.
*/
public Builder setBucketUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bucketUri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearBucketUri() {
bucketUri_ = getDefaultInstance().getBucketUri();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Required. The Cloud Storage bucket containing source objects.
*
*
* string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for bucketUri to set.
* @return This builder for chaining.
*/
public Builder setBucketUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bucketUri_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
}
// @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.GcsSource
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource();
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GcsSource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TranscriptObjectConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for medium.
*/
int getMediumValue();
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The medium.
*/
com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium();
}
/**
*
*
*
* Configuration for processing transcript objects.
*
*
* Protobuf type {@code
* google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig}
*/
public static final class TranscriptObjectConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig)
TranscriptObjectConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use TranscriptObjectConfig.newBuilder() to construct.
private TranscriptObjectConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TranscriptObjectConfig() {
medium_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TranscriptObjectConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.Builder.class);
}
public static final int MEDIUM_FIELD_NUMBER = 1;
private int medium_ = 0;
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for medium.
*/
@java.lang.Override
public int getMediumValue() {
return medium_;
}
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The medium.
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium() {
com.google.cloud.contactcenterinsights.v1.Conversation.Medium result =
com.google.cloud.contactcenterinsights.v1.Conversation.Medium.forNumber(medium_);
return result == null
? com.google.cloud.contactcenterinsights.v1.Conversation.Medium.UNRECOGNIZED
: result;
}
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 (medium_
!= com.google.cloud.contactcenterinsights.v1.Conversation.Medium.MEDIUM_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, medium_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (medium_
!= com.google.cloud.contactcenterinsights.v1.Conversation.Medium.MEDIUM_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, medium_);
}
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)) {
return super.equals(obj);
}
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
other =
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
obj;
if (medium_ != other.medium_) 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) + MEDIUM_FIELD_NUMBER;
hash = (53 * hash) + medium_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
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;
}
/**
*
*
*
* Configuration for processing transcript objects.
*
*
* Protobuf type {@code
* google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig)
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.Builder.class);
}
// Construct using
// com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
medium_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
getDefaultInstanceForType() {
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
build() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
buildPartial() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
result =
new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.medium_ = medium_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig) {
return mergeFrom(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
other) {
if (other
== com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance()) return this;
if (other.medium_ != 0) {
setMediumValue(other.getMediumValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
medium_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
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 int medium_ = 0;
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for medium.
*/
@java.lang.Override
public int getMediumValue() {
return medium_;
}
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @param value The enum numeric value on the wire for medium to set.
* @return This builder for chaining.
*/
public Builder setMediumValue(int value) {
medium_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The medium.
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium() {
com.google.cloud.contactcenterinsights.v1.Conversation.Medium result =
com.google.cloud.contactcenterinsights.v1.Conversation.Medium.forNumber(medium_);
return result == null
? com.google.cloud.contactcenterinsights.v1.Conversation.Medium.UNRECOGNIZED
: result;
}
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @param value The medium to set.
* @return This builder for chaining.
*/
public Builder setMedium(
com.google.cloud.contactcenterinsights.v1.Conversation.Medium value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
medium_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Required. The medium transcript objects represent.
*
*
*
* .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return This builder for chaining.
*/
public Builder clearMedium() {
bitField0_ = (bitField0_ & ~0x00000001);
medium_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig)
private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig();
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TranscriptObjectConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConversationConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @return The agentId.
*/
java.lang.String getAgentId();
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @return The bytes for agentId.
*/
com.google.protobuf.ByteString getAgentIdBytes();
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
* Protobuf type {@code
* google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig}
*/
public static final class ConversationConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig)
ConversationConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConversationConfig.newBuilder() to construct.
private ConversationConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConversationConfig() {
agentId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ConversationConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.Builder.class);
}
public static final int AGENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object agentId_ = "";
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @return The agentId.
*/
@java.lang.Override
public java.lang.String getAgentId() {
java.lang.Object ref = agentId_;
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();
agentId_ = s;
return s;
}
}
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @return The bytes for agentId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAgentIdBytes() {
java.lang.Object ref = agentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
agentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(agentId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentId_);
}
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(agentId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentId_);
}
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig)) {
return super.equals(obj);
}
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
other =
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig)
obj;
if (!getAgentId().equals(other.getAgentId())) 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) + AGENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAgentId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
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.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
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;
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
* Protobuf type {@code
* google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig)
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.Builder.class);
}
// Construct using
// com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
agentId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
getDefaultInstanceForType() {
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
build() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
buildPartial() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
result =
new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.agentId_ = agentId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig) {
return mergeFrom(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
other) {
if (other
== com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.getDefaultInstance()) return this;
if (!other.getAgentId().isEmpty()) {
agentId_ = other.agentId_;
bitField0_ |= 0x00000001;
onChanged();
}
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:
{
agentId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 agentId_ = "";
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @return The agentId.
*/
public java.lang.String getAgentId() {
java.lang.Object ref = agentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
agentId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @return The bytes for agentId.
*/
public com.google.protobuf.ByteString getAgentIdBytes() {
java.lang.Object ref = agentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
agentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @param value The agentId to set.
* @return This builder for chaining.
*/
public Builder setAgentId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
agentId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @return This builder for chaining.
*/
public Builder clearAgentId() {
agentId_ = getDefaultInstance().getAgentId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* An opaque, user-specified string representing the human agent who handled
* the conversations.
*
*
* string agent_id = 1;
*
* @param value The bytes for agentId to set.
* @return This builder for chaining.
*/
public Builder setAgentIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
agentId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig)
private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig();
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConversationConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int sourceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object source_;
public enum SourceCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GCS_SOURCE(2),
SOURCE_NOT_SET(0);
private final int value;
private SourceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SourceCase valueOf(int value) {
return forNumber(value);
}
public static SourceCase forNumber(int value) {
switch (value) {
case 2:
return GCS_SOURCE;
case 0:
return SOURCE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public SourceCase getSourceCase() {
return SourceCase.forNumber(sourceCase_);
}
private int objectConfigCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object objectConfig_;
public enum ObjectConfigCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TRANSCRIPT_OBJECT_CONFIG(3),
OBJECTCONFIG_NOT_SET(0);
private final int value;
private ObjectConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ObjectConfigCase valueOf(int value) {
return forNumber(value);
}
public static ObjectConfigCase forNumber(int value) {
switch (value) {
case 3:
return TRANSCRIPT_OBJECT_CONFIG;
case 0:
return OBJECTCONFIG_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public ObjectConfigCase getObjectConfigCase() {
return ObjectConfigCase.forNumber(objectConfigCase_);
}
public static final int GCS_SOURCE_FIELD_NUMBER = 2;
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*
* @return Whether the gcsSource field is set.
*/
@java.lang.Override
public boolean hasGcsSource() {
return sourceCase_ == 2;
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*
* @return The gcsSource.
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
getGcsSource() {
if (sourceCase_ == 2) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
source_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance();
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder
getGcsSourceOrBuilder() {
if (sourceCase_ == 2) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
source_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance();
}
public static final int TRANSCRIPT_OBJECT_CONFIG_FIELD_NUMBER = 3;
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*
* @return Whether the transcriptObjectConfig field is set.
*/
@java.lang.Override
public boolean hasTranscriptObjectConfig() {
return objectConfigCase_ == 3;
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*
* @return The transcriptObjectConfig.
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
getTranscriptObjectConfig() {
if (objectConfigCase_ == 3) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance();
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfigOrBuilder
getTranscriptObjectConfigOrBuilder() {
if (objectConfigCase_ == 3) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance();
}
public static final int PARENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object parent_ = "";
/**
*
*
*
* Required. The parent resource for new conversations.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @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. The parent resource for new conversations.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @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 CONVERSATION_CONFIG_FIELD_NUMBER = 4;
private com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
conversationConfig_;
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*
* @return Whether the conversationConfig field is set.
*/
@java.lang.Override
public boolean hasConversationConfig() {
return conversationConfig_ != null;
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*
* @return The conversationConfig.
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
getConversationConfig() {
return conversationConfig_ == null
? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
.getDefaultInstance()
: conversationConfig_;
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfigOrBuilder
getConversationConfigOrBuilder() {
return conversationConfig_ == null
? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
.getDefaultInstance()
: conversationConfig_;
}
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_);
}
if (sourceCase_ == 2) {
output.writeMessage(
2,
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) source_);
}
if (objectConfigCase_ == 3) {
output.writeMessage(
3,
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_);
}
if (conversationConfig_ != null) {
output.writeMessage(4, getConversationConfig());
}
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_);
}
if (sourceCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2,
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
source_);
}
if (objectConfigCase_ == 3) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3,
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_);
}
if (conversationConfig_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConversationConfig());
}
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.cloud.contactcenterinsights.v1.IngestConversationsRequest)) {
return super.equals(obj);
}
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest other =
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest) obj;
if (!getParent().equals(other.getParent())) return false;
if (hasConversationConfig() != other.hasConversationConfig()) return false;
if (hasConversationConfig()) {
if (!getConversationConfig().equals(other.getConversationConfig())) return false;
}
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 2:
if (!getGcsSource().equals(other.getGcsSource())) return false;
break;
case 0:
default:
}
if (!getObjectConfigCase().equals(other.getObjectConfigCase())) return false;
switch (objectConfigCase_) {
case 3:
if (!getTranscriptObjectConfig().equals(other.getTranscriptObjectConfig())) return false;
break;
case 0:
default:
}
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 (hasConversationConfig()) {
hash = (37 * hash) + CONVERSATION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConversationConfig().hashCode();
}
switch (sourceCase_) {
case 2:
hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getGcsSource().hashCode();
break;
case 0:
default:
}
switch (objectConfigCase_) {
case 3:
hash = (37 * hash) + TRANSCRIPT_OBJECT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getTranscriptObjectConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest 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.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest 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.cloud.contactcenterinsights.v1.IngestConversationsRequest
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
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.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest 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.cloud.contactcenterinsights.v1.IngestConversationsRequest 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;
}
/**
*
*
*
* The request to ingest conversations.
*
*
* Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsRequest}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest)
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.class,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder.class);
}
// Construct using
// com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (gcsSourceBuilder_ != null) {
gcsSourceBuilder_.clear();
}
if (transcriptObjectConfigBuilder_ != null) {
transcriptObjectConfigBuilder_.clear();
}
parent_ = "";
conversationConfig_ = null;
if (conversationConfigBuilder_ != null) {
conversationConfigBuilder_.dispose();
conversationConfigBuilder_ = null;
}
sourceCase_ = 0;
source_ = null;
objectConfigCase_ = 0;
objectConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto
.internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
getDefaultInstanceForType() {
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest build() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest buildPartial() {
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest result =
new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.parent_ = parent_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.conversationConfig_ =
conversationConfigBuilder_ == null
? conversationConfig_
: conversationConfigBuilder_.build();
}
}
private void buildPartialOneofs(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest result) {
result.sourceCase_ = sourceCase_;
result.source_ = this.source_;
if (sourceCase_ == 2 && gcsSourceBuilder_ != null) {
result.source_ = gcsSourceBuilder_.build();
}
result.objectConfigCase_ = objectConfigCase_;
result.objectConfig_ = this.objectConfig_;
if (objectConfigCase_ == 3 && transcriptObjectConfigBuilder_ != null) {
result.objectConfig_ = transcriptObjectConfigBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest) {
return mergeFrom(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest other) {
if (other
== com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.getDefaultInstance()) return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasConversationConfig()) {
mergeConversationConfig(other.getConversationConfig());
}
switch (other.getSourceCase()) {
case GCS_SOURCE:
{
mergeGcsSource(other.getGcsSource());
break;
}
case SOURCE_NOT_SET:
{
break;
}
}
switch (other.getObjectConfigCase()) {
case TRANSCRIPT_OBJECT_CONFIG:
{
mergeTranscriptObjectConfig(other.getTranscriptObjectConfig());
break;
}
case OBJECTCONFIG_NOT_SET:
{
break;
}
}
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_ |= 0x00000004;
break;
} // case 10
case 18:
{
input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry);
sourceCase_ = 2;
break;
} // case 18
case 26:
{
input.readMessage(
getTranscriptObjectConfigFieldBuilder().getBuilder(), extensionRegistry);
objectConfigCase_ = 3;
break;
} // case 26
case 34:
{
input.readMessage(
getConversationConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 sourceCase_ = 0;
private java.lang.Object source_;
public SourceCase getSourceCase() {
return SourceCase.forNumber(sourceCase_);
}
public Builder clearSource() {
sourceCase_ = 0;
source_ = null;
onChanged();
return this;
}
private int objectConfigCase_ = 0;
private java.lang.Object objectConfig_;
public ObjectConfigCase getObjectConfigCase() {
return ObjectConfigCase.forNumber(objectConfigCase_);
}
public Builder clearObjectConfig() {
objectConfigCase_ = 0;
objectConfig_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder>
gcsSourceBuilder_;
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*
* @return Whether the gcsSource field is set.
*/
@java.lang.Override
public boolean hasGcsSource() {
return sourceCase_ == 2;
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*
* @return The gcsSource.
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
getGcsSource() {
if (gcsSourceBuilder_ == null) {
if (sourceCase_ == 2) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
source_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance();
} else {
if (sourceCase_ == 2) {
return gcsSourceBuilder_.getMessage();
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance();
}
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
public Builder setGcsSource(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource value) {
if (gcsSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
gcsSourceBuilder_.setMessage(value);
}
sourceCase_ = 2;
return this;
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
public Builder setGcsSource(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder
builderForValue) {
if (gcsSourceBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
gcsSourceBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 2;
return this;
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
public Builder mergeGcsSource(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource value) {
if (gcsSourceBuilder_ == null) {
if (sourceCase_ == 2
&& source_
!= com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance()) {
source_ =
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.newBuilder(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.GcsSource)
source_)
.mergeFrom(value)
.buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 2) {
gcsSourceBuilder_.mergeFrom(value);
} else {
gcsSourceBuilder_.setMessage(value);
}
}
sourceCase_ = 2;
return this;
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
public Builder clearGcsSource() {
if (gcsSourceBuilder_ == null) {
if (sourceCase_ == 2) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 2) {
sourceCase_ = 0;
source_ = null;
}
gcsSourceBuilder_.clear();
}
return this;
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder
getGcsSourceBuilder() {
return getGcsSourceFieldBuilder().getBuilder();
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder
getGcsSourceOrBuilder() {
if ((sourceCase_ == 2) && (gcsSourceBuilder_ != null)) {
return gcsSourceBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 2) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
source_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance();
}
}
/**
*
*
*
* A cloud storage bucket source.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder>
getGcsSourceFieldBuilder() {
if (gcsSourceBuilder_ == null) {
if (!(sourceCase_ == 2)) {
source_ =
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.getDefaultInstance();
}
gcsSourceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.GcsSourceOrBuilder>(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource)
source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 2;
onChanged();
return gcsSourceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfigOrBuilder>
transcriptObjectConfigBuilder_;
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*
* @return Whether the transcriptObjectConfig field is set.
*/
@java.lang.Override
public boolean hasTranscriptObjectConfig() {
return objectConfigCase_ == 3;
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*
* @return The transcriptObjectConfig.
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig
getTranscriptObjectConfig() {
if (transcriptObjectConfigBuilder_ == null) {
if (objectConfigCase_ == 3) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance();
} else {
if (objectConfigCase_ == 3) {
return transcriptObjectConfigBuilder_.getMessage();
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance();
}
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
public Builder setTranscriptObjectConfig(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
value) {
if (transcriptObjectConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
objectConfig_ = value;
onChanged();
} else {
transcriptObjectConfigBuilder_.setMessage(value);
}
objectConfigCase_ = 3;
return this;
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
public Builder setTranscriptObjectConfig(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
.Builder
builderForValue) {
if (transcriptObjectConfigBuilder_ == null) {
objectConfig_ = builderForValue.build();
onChanged();
} else {
transcriptObjectConfigBuilder_.setMessage(builderForValue.build());
}
objectConfigCase_ = 3;
return this;
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
public Builder mergeTranscriptObjectConfig(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig
value) {
if (transcriptObjectConfigBuilder_ == null) {
if (objectConfigCase_ == 3
&& objectConfig_
!= com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance()) {
objectConfig_ =
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.newBuilder(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_)
.mergeFrom(value)
.buildPartial();
} else {
objectConfig_ = value;
}
onChanged();
} else {
if (objectConfigCase_ == 3) {
transcriptObjectConfigBuilder_.mergeFrom(value);
} else {
transcriptObjectConfigBuilder_.setMessage(value);
}
}
objectConfigCase_ = 3;
return this;
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
public Builder clearTranscriptObjectConfig() {
if (transcriptObjectConfigBuilder_ == null) {
if (objectConfigCase_ == 3) {
objectConfigCase_ = 0;
objectConfig_ = null;
onChanged();
}
} else {
if (objectConfigCase_ == 3) {
objectConfigCase_ = 0;
objectConfig_ = null;
}
transcriptObjectConfigBuilder_.clear();
}
return this;
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.Builder
getTranscriptObjectConfigBuilder() {
return getTranscriptObjectConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfigOrBuilder
getTranscriptObjectConfigOrBuilder() {
if ((objectConfigCase_ == 3) && (transcriptObjectConfigBuilder_ != null)) {
return transcriptObjectConfigBuilder_.getMessageOrBuilder();
} else {
if (objectConfigCase_ == 3) {
return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_;
}
return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance();
}
}
/**
*
*
*
* Configuration for when `source` contains conversation transcripts.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfigOrBuilder>
getTranscriptObjectConfigFieldBuilder() {
if (transcriptObjectConfigBuilder_ == null) {
if (!(objectConfigCase_ == 3)) {
objectConfig_ =
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.getDefaultInstance();
}
transcriptObjectConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfigOrBuilder>(
(com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.TranscriptObjectConfig)
objectConfig_,
getParentForChildren(),
isClean());
objectConfig_ = null;
}
objectConfigCase_ = 3;
onChanged();
return transcriptObjectConfigBuilder_;
}
private java.lang.Object parent_ = "";
/**
*
*
*
* Required. The parent resource for new conversations.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @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. The parent resource for new conversations.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @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. The parent resource for new conversations.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Required. The parent resource for new conversations.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearParent() {
parent_ = getDefaultInstance().getParent();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Required. The parent resource for new conversations.
*
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @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_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
conversationConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfigOrBuilder>
conversationConfigBuilder_;
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*
* @return Whether the conversationConfig field is set.
*/
public boolean hasConversationConfig() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*
* @return The conversationConfig.
*/
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
getConversationConfig() {
if (conversationConfigBuilder_ == null) {
return conversationConfig_ == null
? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.getDefaultInstance()
: conversationConfig_;
} else {
return conversationConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
public Builder setConversationConfig(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
value) {
if (conversationConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conversationConfig_ = value;
} else {
conversationConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
public Builder setConversationConfig(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
.Builder
builderForValue) {
if (conversationConfigBuilder_ == null) {
conversationConfig_ = builderForValue.build();
} else {
conversationConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
public Builder mergeConversationConfig(
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
value) {
if (conversationConfigBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& conversationConfig_ != null
&& conversationConfig_
!= com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.getDefaultInstance()) {
getConversationConfigBuilder().mergeFrom(value);
} else {
conversationConfig_ = value;
}
} else {
conversationConfigBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
public Builder clearConversationConfig() {
bitField0_ = (bitField0_ & ~0x00000008);
conversationConfig_ = null;
if (conversationConfigBuilder_ != null) {
conversationConfigBuilder_.dispose();
conversationConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
.Builder
getConversationConfigBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getConversationConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfigOrBuilder
getConversationConfigOrBuilder() {
if (conversationConfigBuilder_ != null) {
return conversationConfigBuilder_.getMessageOrBuilder();
} else {
return conversationConfig_ == null
? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.getDefaultInstance()
: conversationConfig_;
}
}
/**
*
*
*
* Configuration that applies to all conversations.
*
*
*
* .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig
.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfigOrBuilder>
getConversationConfigFieldBuilder() {
if (conversationConfigBuilder_ == null) {
conversationConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfig.Builder,
com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
.ConversationConfigOrBuilder>(
getConversationConfig(), getParentForChildren(), isClean());
conversationConfig_ = null;
}
return conversationConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest)
}
// @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest)
private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest();
}
public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngestConversationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}