Class GenerateAppResourceRequest.RefineInstructions (0.7.0)

public static final class GenerateAppResourceRequest.RefineInstructions extends GeneratedMessage implements GenerateAppResourceRequest.RefineInstructionsOrBuilder

The instructions to be used to refine a part of the resource. The part of the resource can be specified with a start index, end index and a field mask. For example, if you want to refine a part of the agent instructions you can specify the index of the first character of the instructions, the index of the last character of the instructions and the field mask as "instructions".

Protobuf type google.cloud.ces.v1beta.GenerateAppResourceRequest.RefineInstructions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GenerateAppResourceRequest.RefineInstructions

Static Fields

END_INDEX_FIELD_NUMBER

public static final int END_INDEX_FIELD_NUMBER
Field Value
Type Description
int

FIELD_MASK_FIELD_NUMBER

public static final int FIELD_MASK_FIELD_NUMBER
Field Value
Type Description
int

INSTRUCTIONS_FIELD_NUMBER

public static final int INSTRUCTIONS_FIELD_NUMBER
Field Value
Type Description
int

START_INDEX_FIELD_NUMBER

public static final int START_INDEX_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateAppResourceRequest.RefineInstructions getDefaultInstance()
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GenerateAppResourceRequest.RefineInstructions.Builder newBuilder()
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions.Builder

newBuilder(GenerateAppResourceRequest.RefineInstructions prototype)

public static GenerateAppResourceRequest.RefineInstructions.Builder newBuilder(GenerateAppResourceRequest.RefineInstructions prototype)
Parameter
Name Description
prototype GenerateAppResourceRequest.RefineInstructions
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions.Builder

parseDelimitedFrom(InputStream input)

public static GenerateAppResourceRequest.RefineInstructions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateAppResourceRequest.RefineInstructions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerateAppResourceRequest.RefineInstructions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenerateAppResourceRequest.RefineInstructions> parser()
Returns
Type Description
Parser<RefineInstructions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GenerateAppResourceRequest.RefineInstructions getDefaultInstanceForType()
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions

getEndIndex()

public long getEndIndex()

Required. The last character (inclusive) of the text to refine.

int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The endIndex.

getFieldMask()

public FieldMask getFieldMask()

Required. The field of the resource being refined. Only one field is allowed per RefineInstructions. If refining agent instructions, the field mask should be "instructions".

.google.protobuf.FieldMask field_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The fieldMask.

getFieldMaskOrBuilder()

public FieldMaskOrBuilder getFieldMaskOrBuilder()

Required. The field of the resource being refined. Only one field is allowed per RefineInstructions. If refining agent instructions, the field mask should be "instructions".

.google.protobuf.FieldMask field_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

getInstructions()

public String getInstructions()

Required. The instructions to refine the resource.

string instructions = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instructions.

getInstructionsBytes()

public ByteString getInstructionsBytes()

Required. The instructions to refine the resource.

string instructions = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instructions.

getParserForType()

public Parser<GenerateAppResourceRequest.RefineInstructions> getParserForType()
Returns
Type Description
Parser<RefineInstructions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartIndex()

public long getStartIndex()

Required. The first character (inclusive) of the text to refine.

int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The startIndex.

hasFieldMask()

public boolean hasFieldMask()

Required. The field of the resource being refined. Only one field is allowed per RefineInstructions. If refining agent instructions, the field mask should be "instructions".

.google.protobuf.FieldMask field_mask = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the fieldMask field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GenerateAppResourceRequest.RefineInstructions.Builder newBuilderForType()
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected GenerateAppResourceRequest.RefineInstructions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions.Builder
Overrides

toBuilder()

public GenerateAppResourceRequest.RefineInstructions.Builder toBuilder()
Returns
Type Description
GenerateAppResourceRequest.RefineInstructions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException