Class CreateNoteRequest (2.38.0)

public final class CreateNoteRequest extends GeneratedMessageV3 implements CreateNoteRequestOrBuilder

Request to create a new note.

Protobuf type grafeas.v1beta1.CreateNoteRequest

Static Fields

NOTE_FIELD_NUMBER

public static final int NOTE_FIELD_NUMBER
Field Value
TypeDescription
int

NOTE_ID_FIELD_NUMBER

public static final int NOTE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateNoteRequest getDefaultInstance()
Returns
TypeDescription
CreateNoteRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateNoteRequest.Builder newBuilder()
Returns
TypeDescription
CreateNoteRequest.Builder

newBuilder(CreateNoteRequest prototype)

public static CreateNoteRequest.Builder newBuilder(CreateNoteRequest prototype)
Parameter
NameDescription
prototypeCreateNoteRequest
Returns
TypeDescription
CreateNoteRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateNoteRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNoteRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateNoteRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateNoteRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateNoteRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateNoteRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateNoteRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNoteRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateNoteRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateNoteRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateNoteRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateNoteRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateNoteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateNoteRequest> parser()
Returns
TypeDescription
Parser<CreateNoteRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateNoteRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateNoteRequest

getNote()

public Note getNote()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
TypeDescription
Note

The note.

getNoteId()

public String getNoteId()

The ID to use for this note.

string note_id = 2;

Returns
TypeDescription
String

The noteId.

getNoteIdBytes()

public ByteString getNoteIdBytes()

The ID to use for this note.

string note_id = 2;

Returns
TypeDescription
ByteString

The bytes for noteId.

getNoteOrBuilder()

public NoteOrBuilder getNoteOrBuilder()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
TypeDescription
NoteOrBuilder

getParent()

public String getParent()

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateNoteRequest> getParserForType()
Returns
TypeDescription
Parser<CreateNoteRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasNote()

public boolean hasNote()

The note to create.

.grafeas.v1beta1.Note note = 3;

Returns
TypeDescription
boolean

Whether the note field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateNoteRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateNoteRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateNoteRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateNoteRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateNoteRequest.Builder toBuilder()
Returns
TypeDescription
CreateNoteRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException