Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [dialogflow] added cx_current_page field to AutomatedAgentReply #8830

Merged
merged 4 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ private AutomatedAgentReply(com.google.protobuf.GeneratedMessageV3.Builder<?> bu

private AutomatedAgentReply() {
automatedAgentReplyType_ = 0;
cxCurrentPage_ = "";
}

@java.lang.Override
Expand Down Expand Up @@ -346,6 +347,59 @@ public boolean getAllowCancellation() {
return allowCancellation_;
}

public static final int CX_CURRENT_PAGE_FIELD_NUMBER = 11;
private volatile java.lang.Object cxCurrentPage_;
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @return The cxCurrentPage.
*/
@java.lang.Override
public java.lang.String getCxCurrentPage() {
java.lang.Object ref = cxCurrentPage_;
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();
cxCurrentPage_ = s;
return s;
}
}
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @return The bytes for cxCurrentPage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCxCurrentPageBytes() {
java.lang.Object ref = cxCurrentPage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
cxCurrentPage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}

private byte memoizedIsInitialized = -1;

@java.lang.Override
Expand All @@ -372,6 +426,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (allowCancellation_ != false) {
output.writeBool(8, allowCancellation_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cxCurrentPage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, cxCurrentPage_);
}
getUnknownFields().writeTo(output);
}

Expand All @@ -394,6 +451,9 @@ public int getSerializedSize() {
if (allowCancellation_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, allowCancellation_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cxCurrentPage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cxCurrentPage_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
Expand All @@ -416,6 +476,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (automatedAgentReplyType_ != other.automatedAgentReplyType_) return false;
if (getAllowCancellation() != other.getAllowCancellation()) return false;
if (!getCxCurrentPage().equals(other.getCxCurrentPage())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
Expand All @@ -435,6 +496,8 @@ public int hashCode() {
hash = (53 * hash) + automatedAgentReplyType_;
hash = (37 * hash) + ALLOW_CANCELLATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCancellation());
hash = (37 * hash) + CX_CURRENT_PAGE_FIELD_NUMBER;
hash = (53 * hash) + getCxCurrentPage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
Expand Down Expand Up @@ -583,6 +646,8 @@ public Builder clear() {

allowCancellation_ = false;

cxCurrentPage_ = "";

return this;
}

Expand Down Expand Up @@ -617,6 +682,7 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply buildPartial() {
}
result.automatedAgentReplyType_ = automatedAgentReplyType_;
result.allowCancellation_ = allowCancellation_;
result.cxCurrentPage_ = cxCurrentPage_;
onBuilt();
return result;
}
Expand Down Expand Up @@ -676,6 +742,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AutomatedAgentReply othe
if (other.getAllowCancellation() != false) {
setAllowCancellation(other.getAllowCancellation());
}
if (!other.getCxCurrentPage().isEmpty()) {
cxCurrentPage_ = other.cxCurrentPage_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
Expand Down Expand Up @@ -721,6 +791,12 @@ public Builder mergeFrom(

break;
} // case 64
case 90:
{
cxCurrentPage_ = input.readStringRequireUtf8();

break;
} // case 90
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
Expand Down Expand Up @@ -1092,6 +1168,122 @@ public Builder clearAllowCancellation() {
return this;
}

private java.lang.Object cxCurrentPage_ = "";
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @return The cxCurrentPage.
*/
public java.lang.String getCxCurrentPage() {
java.lang.Object ref = cxCurrentPage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cxCurrentPage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @return The bytes for cxCurrentPage.
*/
public com.google.protobuf.ByteString getCxCurrentPageBytes() {
java.lang.Object ref = cxCurrentPage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
cxCurrentPage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @param value The cxCurrentPage to set.
* @return This builder for chaining.
*/
public Builder setCxCurrentPage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}

cxCurrentPage_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @return This builder for chaining.
*/
public Builder clearCxCurrentPage() {

cxCurrentPage_ = getDefaultInstance().getCxCurrentPage();
onChanged();
return this;
}
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @param value The bytes for cxCurrentPage to set.
* @return This builder for chaining.
*/
public Builder setCxCurrentPageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);

cxCurrentPage_ = value;
onChanged();
return this;
}

@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,33 @@ public interface AutomatedAgentReplyOrBuilder
* @return The allowCancellation.
*/
boolean getAllowCancellation();

/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @return The cxCurrentPage.
*/
java.lang.String getCxCurrentPage();
/**
*
*
* <pre>
* The unique identifier of the current Dialogflow CX conversation page.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
* ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
* </pre>
*
* <code>string cx_current_page = 11;</code>
*
* @return The bytes for cxCurrentPage.
*/
com.google.protobuf.ByteString getCxCurrentPageBytes();
}
Loading