All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bytedeco.tensorflow.CreateContextRequest Maven / Gradle / Ivy

The newest version!
// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE

package org.bytedeco.tensorflow;

import org.bytedeco.tensorflow.Allocator;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;

import static org.bytedeco.tensorflow.global.tensorflow.*;

// -------------------------------------------------------------------

@Namespace("tensorflow::eager") @NoOffset @Properties(inherit = org.bytedeco.tensorflow.presets.tensorflow.class)
public class CreateContextRequest extends MessageLite {
    static { Loader.load(); }
    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
    public CreateContextRequest(Pointer p) { super(p); }
    /** Native array allocator. Access with {@link Pointer#position(long)}. */
    public CreateContextRequest(long size) { super((Pointer)null); allocateArray(size); }
    private native void allocateArray(long size);
    @Override public CreateContextRequest position(long position) {
        return (CreateContextRequest)super.position(position);
    }
    @Override public CreateContextRequest getPointer(long i) {
        return new CreateContextRequest((Pointer)this).offsetAddress(i);
    }

  public CreateContextRequest() { super((Pointer)null); allocate(); }
  private native void allocate();

  public CreateContextRequest(@Const @ByRef CreateContextRequest from) { super((Pointer)null); allocate(from); }
  private native void allocate(@Const @ByRef CreateContextRequest from);

  public native @ByRef @Name("operator =") CreateContextRequest put(@Const @ByRef CreateContextRequest from);

  public static native @Cast("const google::protobuf::Descriptor*") Pointer descriptor();
  public static native @Cast("const google::protobuf::Descriptor*") Pointer GetDescriptor();
  public static native @Cast("const google::protobuf::Reflection*") Pointer GetReflection();
  public static native @Const @ByRef CreateContextRequest default_instance();

  public static native void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  public static native @Const CreateContextRequest internal_default_instance();
  @MemberGetter public static native int kIndexInFileMessages();
  public static final int kIndexInFileMessages = kIndexInFileMessages();

  public native void Swap(CreateContextRequest other);
  

  // implements Message ----------------------------------------------

  public native CreateContextRequest New();

  public native CreateContextRequest New(Arena arena);
  public native void CopyFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
  public native void MergeFrom(@Cast("const google::protobuf::Message*") @ByRef MessageLite from);
  public native void CopyFrom(@Const @ByRef CreateContextRequest from);
  public native void MergeFrom(@Const @ByRef CreateContextRequest from);
  public native void Clear();
  public native @Cast("bool") boolean IsInitialized();

  public native @Cast("size_t") long ByteSizeLong();
//   #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
//   #else
  public native @Cast("bool") boolean MergePartialFromCodedStream(
        CodedInputStream input);
//   #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  public native void SerializeWithCachedSizes(
        CodedOutputStream output);
  public native @Cast("google::protobuf::uint8*") BytePointer InternalSerializeWithCachedSizesToArray(
        @Cast("google::protobuf::uint8*") BytePointer target);
  public native @Cast("google::protobuf::uint8*") ByteBuffer InternalSerializeWithCachedSizesToArray(
        @Cast("google::protobuf::uint8*") ByteBuffer target);
  public native @Cast("google::protobuf::uint8*") byte[] InternalSerializeWithCachedSizesToArray(
        @Cast("google::protobuf::uint8*") byte[] target);
  public native int GetCachedSize();

  public native @ByVal @Cast("google::protobuf::Metadata*") Pointer GetMetadata();

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // repeated .tensorflow.DeviceAttributes cluster_device_attributes = 6;
  public native int cluster_device_attributes_size();
  public native void clear_cluster_device_attributes();
  @MemberGetter public static native int kClusterDeviceAttributesFieldNumber();
  public static final int kClusterDeviceAttributesFieldNumber = kClusterDeviceAttributesFieldNumber();
  public native DeviceAttributes mutable_cluster_device_attributes(int index);
  public native @Const @ByRef DeviceAttributes cluster_device_attributes(int index);
  public native DeviceAttributes add_cluster_device_attributes();

  // .tensorflow.ServerDef server_def = 1;
  public native @Cast("bool") boolean has_server_def();
  public native void clear_server_def();
  @MemberGetter public static native int kServerDefFieldNumber();
  public static final int kServerDefFieldNumber = kServerDefFieldNumber();
  public native @Const @ByRef ServerDef server_def();
  public native ServerDef release_server_def();
  public native ServerDef mutable_server_def();
  public native void set_allocated_server_def(ServerDef server_def);

  // .tensorflow.VersionDef version_def = 4;
  public native @Cast("bool") boolean has_version_def();
  public native void clear_version_def();
  @MemberGetter public static native int kVersionDefFieldNumber();
  public static final int kVersionDefFieldNumber = kVersionDefFieldNumber();
  public native @Const @ByRef VersionDef version_def();
  public native VersionDef release_version_def();
  public native VersionDef mutable_version_def();
  public native void set_allocated_version_def(VersionDef version_def);

  // int64 keep_alive_secs = 3;
  public native void clear_keep_alive_secs();
  @MemberGetter public static native int kKeepAliveSecsFieldNumber();
  public static final int kKeepAliveSecsFieldNumber = kKeepAliveSecsFieldNumber();
  public native @Cast("google::protobuf::int64") long keep_alive_secs();
  public native void set_keep_alive_secs(@Cast("google::protobuf::int64") long value);

  // fixed64 context_id = 7;
  public native void clear_context_id();
  @MemberGetter public static native int kContextIdFieldNumber();
  public static final int kContextIdFieldNumber = kContextIdFieldNumber();
  public native @Cast("google::protobuf::uint64") long context_id();
  public native void set_context_id(@Cast("google::protobuf::uint64") long value);

  // bool async = 2;
  public native void clear_async();
  @MemberGetter public static native int kAsyncFieldNumber();
  public static final int kAsyncFieldNumber = kAsyncFieldNumber();
  public native @Cast("bool") boolean async();
  public native void set_async(@Cast("bool") boolean value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy