Skip to content

Commit

Permalink
feat: [dialogflow] added cx_current_page field to AutomatedAgentReply (
Browse files Browse the repository at this point in the history
…#8830)

- [ ] Regenerate this pull request now.

docs: clarified docs for Sentiment

PiperOrigin-RevId: 490103678

Source-Link: https://togithub.com/googleapis/googleapis/commit/8f95a5f2d5032f040d93874bf8e63b33d135d11d

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/fed1c108dbe9291c14f7f305ca1e8bf2830c9c60
Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiJmZWQxYzEwOGRiZTkyOTFjMTRmN2YzMDVjYTFlOGJmMjgzMGM5YzYwIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and alicejli committed Nov 28, 2022
1 parent fc07965 commit 8c1e2a9
Show file tree
Hide file tree
Showing 6 changed files with 353 additions and 118 deletions.
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

0 comments on commit 8c1e2a9

Please sign in to comment.